summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/index.html193
-rw-r--r--2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/stats.html164
-rw-r--r--2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/style.css177
-rw-r--r--2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/0.html1191
-rw-r--r--2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/index.html197
-rw-r--r--2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/stats.html167
-rw-r--r--2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/style.css177
-rw-r--r--2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/0.html1191
-rw-r--r--2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/index.html197
-rw-r--r--2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/stats.html167
-rw-r--r--2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/style.css177
-rw-r--r--2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/0.html1189
-rw-r--r--2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/index.html197
-rw-r--r--2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/stats.html167
-rw-r--r--2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/style.css177
-rw-r--r--2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/0.html1189
-rw-r--r--2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/index.html197
-rw-r--r--2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/stats.html167
-rw-r--r--2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/style.css177
-rw-r--r--2023-05-23-093151-5604-cppcheck@13874beaa074_meson/0.html1189
-rw-r--r--2023-05-23-093151-5604-cppcheck@13874beaa074_meson/index.html197
-rw-r--r--2023-05-23-093151-5604-cppcheck@13874beaa074_meson/stats.html167
-rw-r--r--2023-05-23-093151-5604-cppcheck@13874beaa074_meson/style.css177
-rw-r--r--2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/0.html1189
-rw-r--r--2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/index.html197
-rw-r--r--2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/stats.html167
-rw-r--r--2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/style.css177
-rw-r--r--2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/0.html1189
-rw-r--r--2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/index.html197
-rw-r--r--2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/stats.html167
-rw-r--r--2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/style.css177
-rw-r--r--2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/0.html1189
-rw-r--r--2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/index.html197
-rw-r--r--2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/stats.html167
-rw-r--r--2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/style.css177
-rw-r--r--2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/0.html1189
-rw-r--r--2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/index.html197
-rw-r--r--2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/stats.html167
-rw-r--r--2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/style.css177
-rw-r--r--2023-08-31-195451-3891-cppcheck@015207383e78_master/0.html1189
-rw-r--r--2023-08-31-195451-3891-cppcheck@015207383e78_master/index.html197
-rw-r--r--2023-08-31-195451-3891-cppcheck@015207383e78_master/stats.html167
-rw-r--r--2023-08-31-195451-3891-cppcheck@015207383e78_master/style.css177
-rw-r--r--2023-09-02-184611-1622-cppcheck@4b078a16e961_master/0.html1189
-rw-r--r--2023-09-02-184611-1622-cppcheck@4b078a16e961_master/index.html197
-rw-r--r--2023-09-02-184611-1622-cppcheck@4b078a16e961_master/stats.html167
-rw-r--r--2023-09-02-184611-1622-cppcheck@4b078a16e961_master/style.css177
-rw-r--r--2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/0.html1189
-rw-r--r--2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/index.html197
-rw-r--r--2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/stats.html167
-rw-r--r--2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/style.css177
-rw-r--r--2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/0.html1189
-rw-r--r--2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/index.html197
-rw-r--r--2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/stats.html167
-rw-r--r--2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/style.css177
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/0.html1189
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/1.html335
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/2.html2639
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/3.html393
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/4.html1269
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/5.html351
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/6.html761
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/index.html252
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/stats.html178
-rw-r--r--2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/style.css177
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/0.html1189
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/1.html335
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/2.html2639
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/3.html393
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/4.html1269
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/5.html351
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/6.html761
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/index.html252
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/stats.html178
-rw-r--r--2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/style.css177
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/0.html1189
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/1.html335
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/2.html2639
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/3.html393
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/4.html1269
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/5.html351
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/6.html761
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/index.html252
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/stats.html178
-rw-r--r--2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/style.css177
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/0.html1189
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/1.html335
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/2.html2639
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/3.html393
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/4.html1269
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/5.html351
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/6.html761
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/index.html252
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/stats.html178
-rw-r--r--2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/style.css177
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/0.html1189
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/1.html335
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/2.html2639
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/3.html393
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/4.html1269
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/5.html351
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/6.html761
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/index.html252
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/stats.html178
-rw-r--r--2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/style.css177
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/0.html1189
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/1.html335
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/2.html2639
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/3.html393
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/4.html1269
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/5.html351
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/6.html761
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/index.html252
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/stats.html178
-rw-r--r--2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/style.css177
-rw-r--r--CNAME1
-rw-r--r--index.html46
117 files changed, 68339 insertions, 0 deletions
diff --git a/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/index.html b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/index.html
new file mode 100644
index 0000000..b23ea0f
--- /dev/null
+++ b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/index.html
@@ -0,0 +1,193 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="style"disabled/>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="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td></td><td>1</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="0.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>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/stats.html b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/stats.html
new file mode 100644
index 0000000..c65c129
--- /dev/null
+++ b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/stats.html
@@ -0,0 +1,164 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.7.4 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/style.css b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_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;
+}
diff --git a/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/0.html b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/0.html
new file mode 100644
index 0000000..a3b65cc
--- /dev/null
+++ b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/0.html
@@ -0,0 +1,1191 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-48"> shadowVariable 48</a><a href="0.html#line-227"> shadowVariable 227</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-20" name="line-20"></a><span class="cm"> */</span><span class="w"></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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="cp"></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">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="cp"></span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="cp"></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">&quot;polkitmatelistener.h&quot;</span><span class="cp"></span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span><span class="w"></span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cm">/* the Authority */</span><span class="w"></span>
+<a id="line-48" name="line-48"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="cm">/* the session we are servicing */</span><span class="w"></span>
+<a id="line-51" name="line-51"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cm">/* the current set of temporary authorizations */</span><span class="w"></span>
+<a id="line-54" name="line-54"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-58" name="line-58"></a><span class="cp">#else</span>
+<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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>
+<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">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span><span class="w"></span>
+<a id="line-63" name="line-63"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span><span class="w"></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><span class="w"></span>
+<a id="line-68" name="line-68"></a><span class="nf">revoke_tmp_authz_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><span class="w"></span>
+<a id="line-69" name="line-69"></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><span class="w"></span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-71" name="line-71"></a><span class="p">{</span><span class="w"></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><span class="w"></span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-78" name="line-78"></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>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-83" name="line-83"></a><span class="p">}</span><span class="w"></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><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="p">{</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-93" name="line-93"></a><span class="p">}</span><span class="w"></span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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>
+<a id="line-97" name="line-97"></a><span class="nf">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="p">{</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="p">}</span><span class="w"></span>
+<a id="line-102" name="line-102"></a><span class="cp">#else</span>
+<a id="line-103" name="line-103"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="p">{</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-108" name="line-108"></a><span class="p">}</span><span class="w"></span>
+<a id="line-109" name="line-109"></a>
+<a id="line-110" name="line-110"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-111" name="line-111"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"></span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><span class="p">,</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-115" name="line-115"></a><span class="p">{</span><span class="w"></span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="p">}</span><span class="w"></span>
+<a id="line-118" name="line-118"></a><span class="cp">#endif</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-121" name="line-121"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-122" name="line-122"></a><span class="p">{</span><span class="w"></span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="cp">#if 0</span><span class="c"></span>
+<a id="line-125" name="line-125"></a><span class="c"> GList *l;</span>
+<a id="line-126" name="line-126"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-127" name="line-127"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-128" name="line-128"></a><span class="c"> {</span>
+<a id="line-129" name="line-129"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-134" name="line-134"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-136" name="line-136"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-137" name="line-137"></a><span class="c"> }</span>
+<a id="line-138" name="line-138"></a><span class="cp">#endif</span>
+<a id="line-139" name="line-139"></a>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-141" name="line-141"></a><span class="cm"> *</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-143" name="line-143"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-144" name="line-144"></a><span class="cm"> *</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-147" name="line-147"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-148" name="line-148"></a><span class="cm"> *</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-150" name="line-150"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-151" name="line-151"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-152" name="line-152"></a>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="cm">/* show icon */</span><span class="w"></span>
+<a id="line-156" name="line-156"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-159" name="line-159"></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><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span><span class="w"></span>
+<a id="line-160" name="line-160"></a>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</span><span class="p">);</span><span class="w"></span>
+<a id="line-164" name="line-164"></a>
+<a id="line-165" name="line-165"></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_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">);</span><span class="w"></span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span><span class="w"></span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span><span class="w"></span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="cp">#else</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_popup_menu</span><span class="p">),</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-199" name="line-199"></a><span class="cp">#endif</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="cm">/* hide icon */</span><span class="w"></span>
+<a id="line-204" name="line-204"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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="n">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span><span class="w"></span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="cp">#else</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span><span class="w"></span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">status_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>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-218" name="line-218"></a><span class="cp">#endif</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-220" name="line-220"></a><span class="p">}</span><span class="w"></span>
+<a id="line-221" name="line-221"></a>
+<a id="line-222" name="line-222"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-223" name="line-223"></a><span class="nf">enumerate_temporary_authorizations_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><span class="w"></span>
+<a id="line-224" name="line-224"></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><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="p">{</span><span class="w"></span>
+<a id="line-227" name="line-227"></a><span class="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="w"></span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-229" name="line-229"></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><span class="w"></span>
+<a id="line-230" name="line-230"></a>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></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><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="p">);</span><span class="w"></span>
+<a id="line-246" name="line-246"></a>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">;</span><span class="w"></span>
+<a id="line-253" name="line-253"></a><span class="p">}</span><span class="w"></span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">)</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="p">{</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span><span class="w"></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>
+<a id="line-263" name="line-263"></a><span class="p">}</span><span class="w"></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="kt">void</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-268" name="line-268"></a><span class="p">{</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-270" name="line-270"></a><span class="p">}</span><span class="w"></span>
+<a id="line-271" name="line-271"></a>
+<a id="line-272" name="line-272"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="p">{</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-276" name="line-276"></a><span class="p">}</span><span class="w"></span>
+<a id="line-277" name="line-277"></a>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</span><span class="p">)</span><span class="w"></span>
+<a id="line-280" name="line-280"></a><span class="p">{</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-283" name="line-283"></a>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span><span class="w"></span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span><span class="w"></span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></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="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="p">}</span><span class="w"></span>
+<a id="line-302" name="line-302"></a>
+<a id="line-303" name="line-303"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-305" name="line-305"></a><span class="p">{</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="p">}</span><span class="w"></span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-310" name="line-310"></a><span class="nf">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="p">{</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-314" name="line-314"></a><span class="p">}</span><span class="w"></span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-317" name="line-317"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="w"></span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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><span class="w"></span>
+<a id="line-319" name="line-319"></a><span class="p">{</span><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-327" name="line-327"></a><span class="p">}</span><span class="w"></span>
+<a id="line-328" name="line-328"></a>
+<a id="line-329" name="line-329"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-331" name="line-331"></a><span class="p">{</span><span class="w"></span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span><span class="w"></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">app_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></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_getenv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-340" name="line-340"></a>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">sm_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><span class="w"></span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span><span class="w"></span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">sm_proxy</span><span class="w"> </span><span 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>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-354" name="line-354"></a>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></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">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-369" name="line-369"></a>
+<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="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</span><span class="p">);</span><span class="w"></span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">client_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><span class="w"></span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></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="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="w"> </span><span 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>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-392" name="line-392"></a>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-394" name="line-394"></a>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-396" name="line-396"></a><span class="p">}</span><span class="w"></span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></a><span class="kt">int</span><span class="w"></span>
+<a id="line-399" name="line-399"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"></span>
+<a id="line-400" name="line-400"></a><span class="p">{</span><span class="w"></span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span><span class="w"></span>
+<a id="line-403" name="line-403"></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><span class="w"></span>
+<a id="line-404" name="line-404"></a>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span><span class="w"></span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"></span>
+<a id="line-412" name="line-412"></a>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span><span class="w"></span>
+<a id="line-414" name="line-414"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-416" name="line-416"></a><span class="cp">#endif</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span><span class="w"></span>
+<a id="line-418" name="line-418"></a>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="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><span class="w"></span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span><span class="w"></span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></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><span class="w"></span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-438" name="line-438"></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>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-444" name="line-444"></a>
+<a id="line-445" name="line-445"></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><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">))</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-457" name="line-457"></a>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">register_client_to_gnome_session</span><span class="p">();</span><span class="w"></span>
+<a id="line-461" name="line-461"></a>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-465" name="line-465"></a>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-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">authority</span><span class="p">);</span><span class="w"></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">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span><span class="w"></span>
+<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">listener</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span><span class="w"></span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-475" name="line-475"></a>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-477" name="line-477"></a><span class="p">}</span><span class="w"></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-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/index.html b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/index.html
new file mode 100644
index 0000000..a940c0e
--- /dev/null
+++ b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-227">227</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/stats.html b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/style.css b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2/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;
+}
diff --git a/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/0.html b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/0.html
new file mode 100644
index 0000000..a3b65cc
--- /dev/null
+++ b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/0.html
@@ -0,0 +1,1191 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-48"> shadowVariable 48</a><a href="0.html#line-227"> shadowVariable 227</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-20" name="line-20"></a><span class="cm"> */</span><span class="w"></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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="cp"></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">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="cp"></span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="cp"></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">&quot;polkitmatelistener.h&quot;</span><span class="cp"></span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span><span class="w"></span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cm">/* the Authority */</span><span class="w"></span>
+<a id="line-48" name="line-48"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="cm">/* the session we are servicing */</span><span class="w"></span>
+<a id="line-51" name="line-51"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cm">/* the current set of temporary authorizations */</span><span class="w"></span>
+<a id="line-54" name="line-54"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-58" name="line-58"></a><span class="cp">#else</span>
+<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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>
+<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">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span><span class="w"></span>
+<a id="line-63" name="line-63"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span><span class="w"></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><span class="w"></span>
+<a id="line-68" name="line-68"></a><span class="nf">revoke_tmp_authz_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><span class="w"></span>
+<a id="line-69" name="line-69"></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><span class="w"></span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-71" name="line-71"></a><span class="p">{</span><span class="w"></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><span class="w"></span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-78" name="line-78"></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>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-83" name="line-83"></a><span class="p">}</span><span class="w"></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><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="p">{</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-93" name="line-93"></a><span class="p">}</span><span class="w"></span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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>
+<a id="line-97" name="line-97"></a><span class="nf">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="p">{</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="p">}</span><span class="w"></span>
+<a id="line-102" name="line-102"></a><span class="cp">#else</span>
+<a id="line-103" name="line-103"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="p">{</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-108" name="line-108"></a><span class="p">}</span><span class="w"></span>
+<a id="line-109" name="line-109"></a>
+<a id="line-110" name="line-110"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-111" name="line-111"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"></span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><span class="p">,</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-115" name="line-115"></a><span class="p">{</span><span class="w"></span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="p">}</span><span class="w"></span>
+<a id="line-118" name="line-118"></a><span class="cp">#endif</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-121" name="line-121"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-122" name="line-122"></a><span class="p">{</span><span class="w"></span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="cp">#if 0</span><span class="c"></span>
+<a id="line-125" name="line-125"></a><span class="c"> GList *l;</span>
+<a id="line-126" name="line-126"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-127" name="line-127"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-128" name="line-128"></a><span class="c"> {</span>
+<a id="line-129" name="line-129"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-134" name="line-134"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-136" name="line-136"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-137" name="line-137"></a><span class="c"> }</span>
+<a id="line-138" name="line-138"></a><span class="cp">#endif</span>
+<a id="line-139" name="line-139"></a>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-141" name="line-141"></a><span class="cm"> *</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-143" name="line-143"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-144" name="line-144"></a><span class="cm"> *</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-147" name="line-147"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-148" name="line-148"></a><span class="cm"> *</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-150" name="line-150"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-151" name="line-151"></a><span class="cm"> */</span><span class="w"></span>
+<a id="line-152" name="line-152"></a>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="cm">/* show icon */</span><span class="w"></span>
+<a id="line-156" name="line-156"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-159" name="line-159"></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><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span><span class="w"></span>
+<a id="line-160" name="line-160"></a>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</span><span class="p">);</span><span class="w"></span>
+<a id="line-164" name="line-164"></a>
+<a id="line-165" name="line-165"></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_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span><span class="w"></span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">);</span><span class="w"></span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span><span class="w"></span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span><span class="w"></span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="cp">#else</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_popup_menu</span><span class="p">),</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-199" name="line-199"></a><span class="cp">#endif</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="cm">/* hide icon */</span><span class="w"></span>
+<a id="line-204" name="line-204"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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="n">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span><span class="w"></span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-211" name="line-211"></a><span class="cp">#else</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span><span class="w"></span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">status_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>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-218" name="line-218"></a><span class="cp">#endif</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-220" name="line-220"></a><span class="p">}</span><span class="w"></span>
+<a id="line-221" name="line-221"></a>
+<a id="line-222" name="line-222"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-223" name="line-223"></a><span class="nf">enumerate_temporary_authorizations_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><span class="w"></span>
+<a id="line-224" name="line-224"></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><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="p">{</span><span class="w"></span>
+<a id="line-227" name="line-227"></a><span class="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="w"></span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-229" name="line-229"></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><span class="w"></span>
+<a id="line-230" name="line-230"></a>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></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><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="p">);</span><span class="w"></span>
+<a id="line-246" name="line-246"></a>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">;</span><span class="w"></span>
+<a id="line-253" name="line-253"></a><span class="p">}</span><span class="w"></span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">)</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="p">{</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span><span class="w"></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>
+<a id="line-263" name="line-263"></a><span class="p">}</span><span class="w"></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="kt">void</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-268" name="line-268"></a><span class="p">{</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-270" name="line-270"></a><span class="p">}</span><span class="w"></span>
+<a id="line-271" name="line-271"></a>
+<a id="line-272" name="line-272"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="p">{</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-276" name="line-276"></a><span class="p">}</span><span class="w"></span>
+<a id="line-277" name="line-277"></a>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</span><span class="p">)</span><span class="w"></span>
+<a id="line-280" name="line-280"></a><span class="p">{</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-283" name="line-283"></a>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span><span class="w"></span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span><span class="w"></span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></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="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-301" name="line-301"></a><span class="p">}</span><span class="w"></span>
+<a id="line-302" name="line-302"></a>
+<a id="line-303" name="line-303"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-305" name="line-305"></a><span class="p">{</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-307" name="line-307"></a><span class="p">}</span><span class="w"></span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-310" name="line-310"></a><span class="nf">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="p">{</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-314" name="line-314"></a><span class="p">}</span><span class="w"></span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-317" name="line-317"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="w"></span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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><span class="w"></span>
+<a id="line-319" name="line-319"></a><span class="p">{</span><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-327" name="line-327"></a><span class="p">}</span><span class="w"></span>
+<a id="line-328" name="line-328"></a>
+<a id="line-329" name="line-329"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-331" name="line-331"></a><span class="p">{</span><span class="w"></span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span><span class="w"></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">app_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></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_getenv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-340" name="line-340"></a>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">sm_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><span class="w"></span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span><span class="w"></span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">sm_proxy</span><span class="w"> </span><span 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>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-354" name="line-354"></a>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></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">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-369" name="line-369"></a>
+<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="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</span><span class="p">);</span><span class="w"></span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">client_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><span class="w"></span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></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="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="w"> </span><span 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>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-392" name="line-392"></a>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-394" name="line-394"></a>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-396" name="line-396"></a><span class="p">}</span><span class="w"></span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></a><span class="kt">int</span><span class="w"></span>
+<a id="line-399" name="line-399"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"></span>
+<a id="line-400" name="line-400"></a><span class="p">{</span><span class="w"></span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span><span class="w"></span>
+<a id="line-403" name="line-403"></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><span class="w"></span>
+<a id="line-404" name="line-404"></a>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span><span class="w"></span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"></span>
+<a id="line-412" name="line-412"></a>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span><span class="w"></span>
+<a id="line-414" name="line-414"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-416" name="line-416"></a><span class="cp">#endif</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span><span class="w"></span>
+<a id="line-418" name="line-418"></a>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="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><span class="w"></span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span><span class="w"></span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></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><span class="w"></span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-438" name="line-438"></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>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-444" name="line-444"></a>
+<a id="line-445" name="line-445"></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><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">))</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-457" name="line-457"></a>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">register_client_to_gnome_session</span><span class="p">();</span><span class="w"></span>
+<a id="line-461" name="line-461"></a>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-465" name="line-465"></a>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-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">authority</span><span class="p">);</span><span class="w"></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">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span><span class="w"></span>
+<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">listener</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span><span class="w"></span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-475" name="line-475"></a>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-477" name="line-477"></a><span class="p">}</span><span class="w"></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-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/index.html b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/index.html
new file mode 100644
index 0000000..a940c0e
--- /dev/null
+++ b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-227">227</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/stats.html b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/style.css b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2/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;
+}
diff --git a/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/0.html b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/0.html
new file mode 100644
index 0000000..2b46300
--- /dev/null
+++ b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-20" name="line-20"></a><span class="cm"> */</span><span class="w"></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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="cp"></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">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="cp"></span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="cp"></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">&quot;polkitmatelistener.h&quot;</span><span class="cp"></span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span><span class="w"></span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span><span class="w"></span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span><span class="w"></span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span><span class="w"></span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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>
+<a id="line-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span><span class="w"></span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-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">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span><span class="w"></span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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><span class="w"></span>
+<a id="line-68" name="line-68"></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><span class="w"></span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-70" name="line-70"></a><span class="p">{</span><span class="w"></span>
+<a id="line-71" name="line-71"></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><span class="w"></span>
+<a id="line-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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><span class="w"></span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="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>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="p">}</span><span class="w"></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">void</span><span class="w"></span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="p">{</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-92" name="line-92"></a><span class="p">}</span><span class="w"></span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-95" name="line-95"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="nf">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"></span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="p">{</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="p">}</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="cp">#else</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>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="p">{</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="p">}</span><span class="w"></span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"></span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><span class="p">,</span><span class="w"></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">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="p">{</span><span class="w"></span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-116" name="line-116"></a><span class="p">}</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-121" name="line-121"></a><span class="p">{</span><span class="w"></span>
+<a id="line-122" name="line-122"></a>
+<a id="line-123" name="line-123"></a><span class="cp">#if 0</span><span class="c"></span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</span><span class="w"></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">current_temporary_authorizations</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-158" name="line-158"></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><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span><span class="w"></span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</span><span class="p">);</span><span class="w"></span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></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_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"></span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">);</span><span class="w"></span>
+<a id="line-172" name="line-172"></a>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span><span class="w"></span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<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">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</span><span class="p">,</span><span class="w"></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">on_status_icon_popup_menu</span><span class="p">),</span><span class="w"></span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="cm">/* hide icon */</span><span class="w"></span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span><span class="w"></span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="cp">#else</span>
+<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">status_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>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span><span class="w"></span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-219" name="line-219"></a><span class="p">}</span><span class="w"></span>
+<a id="line-220" name="line-220"></a>
+<a id="line-221" name="line-221"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-222" name="line-222"></a><span class="nf">enumerate_temporary_authorizations_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><span class="w"></span>
+<a id="line-223" name="line-223"></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><span class="w"></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><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="p">{</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="w"></span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-228" name="line-228"></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><span class="w"></span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></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><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="p">);</span><span class="w"></span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-247" name="line-247"></a>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="p">}</span><span class="w"></span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">)</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="p">{</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-262" name="line-262"></a><span class="p">}</span><span class="w"></span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="p">{</span><span class="w"></span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="p">}</span><span class="w"></span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="p">{</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="p">}</span><span class="w"></span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</span><span class="p">)</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="p">{</span><span class="w"></span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span><span class="w"></span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="p">}</span><span class="w"></span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="p">{</span><span class="w"></span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="p">}</span><span class="w"></span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-309" name="line-309"></a><span class="nf">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-310" name="line-310"></a><span class="p">{</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="p">}</span><span class="w"></span>
+<a id="line-314" name="line-314"></a>
+<a id="line-315" name="line-315"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="w"></span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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><span class="w"></span>
+<a id="line-318" name="line-318"></a><span class="p">{</span><span class="w"></span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-326" name="line-326"></a><span class="p">}</span><span class="w"></span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="p">{</span><span class="w"></span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-334" name="line-334"></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">app_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-336" name="line-336"></a>
+<a id="line-337" name="line-337"></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_getenv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-339" name="line-339"></a>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">sm_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><span class="w"></span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">sm_proxy</span><span class="w"> </span><span 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>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">sm_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span><span class="w"></span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-368" name="line-368"></a>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span><span class="w"></span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-374" name="line-374"></a>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</span><span class="p">);</span><span class="w"></span>
+<a id="line-376" name="line-376"></a>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">client_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><span class="w"></span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<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">client_proxy</span><span class="w"> </span><span 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>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-395" name="line-395"></a><span class="p">}</span><span class="w"></span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span><span class="w"></span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"></span>
+<a id="line-399" name="line-399"></a><span class="p">{</span><span class="w"></span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span><span class="w"></span>
+<a id="line-402" name="line-402"></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><span class="w"></span>
+<a id="line-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span><span class="w"></span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"></span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span><span class="w"></span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span><span class="w"></span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-419" name="line-419"></a>
+<a id="line-420" name="line-420"></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><span class="w"></span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span><span class="w"></span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<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">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-443" name="line-443"></a>
+<a id="line-444" name="line-444"></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><span class="w"></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="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">))</span><span class="w"></span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-456" name="line-456"></a>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-458" name="line-458"></a>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">register_client_to_gnome_session</span><span class="p">();</span><span class="w"></span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-462" name="line-462"></a>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-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">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span><span class="w"></span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span><span class="w"></span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-476" name="line-476"></a><span class="p">}</span><span class="w"></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-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/index.html b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/stats.html b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/style.css b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2/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;
+}
diff --git a/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/0.html b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/0.html
new file mode 100644
index 0000000..2b46300
--- /dev/null
+++ b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-20" name="line-20"></a><span class="cm"> */</span><span class="w"></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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="cp"></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">&lt;string.h&gt;</span><span class="cp"></span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="cp"></span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="cp"></span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="cp"></span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="cp"></span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="cp"></span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="cp"></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">&quot;polkitmatelistener.h&quot;</span><span class="cp"></span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span><span class="w"></span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span><span class="w"></span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span><span class="w"></span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span><span class="w"></span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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>
+<a id="line-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span><span class="w"></span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-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">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span><span class="w"></span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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><span class="w"></span>
+<a id="line-68" name="line-68"></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><span class="w"></span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-70" name="line-70"></a><span class="p">{</span><span class="w"></span>
+<a id="line-71" name="line-71"></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><span class="w"></span>
+<a id="line-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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><span class="w"></span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span><span class="w"></span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="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>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-82" name="line-82"></a><span class="p">}</span><span class="w"></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">void</span><span class="w"></span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-86" name="line-86"></a><span class="p">{</span><span class="w"></span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-92" name="line-92"></a><span class="p">}</span><span class="w"></span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-95" name="line-95"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-96" name="line-96"></a><span class="nf">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"></span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-98" name="line-98"></a><span class="p">{</span><span class="w"></span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-100" name="line-100"></a><span class="p">}</span><span class="w"></span>
+<a id="line-101" name="line-101"></a><span class="cp">#else</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>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-105" name="line-105"></a><span class="p">{</span><span class="w"></span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-107" name="line-107"></a><span class="p">}</span><span class="w"></span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"></span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><span class="p">,</span><span class="w"></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">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-114" name="line-114"></a><span class="p">{</span><span class="w"></span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-116" name="line-116"></a><span class="p">}</span><span class="w"></span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-121" name="line-121"></a><span class="p">{</span><span class="w"></span>
+<a id="line-122" name="line-122"></a>
+<a id="line-123" name="line-123"></a><span class="cp">#if 0</span><span class="c"></span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</span><span class="w"></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">current_temporary_authorizations</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span><span class="w"></span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-158" name="line-158"></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><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span><span class="w"></span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</span><span class="p">);</span><span class="w"></span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></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_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"></span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span><span class="w"></span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">);</span><span class="w"></span>
+<a id="line-172" name="line-172"></a>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span><span class="w"></span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span><span class="w"></span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span><span class="w"></span>
+<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">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_status_icon_activate</span><span class="p">),</span><span class="w"></span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"></span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</span><span class="p">,</span><span class="w"></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">on_status_icon_popup_menu</span><span class="p">),</span><span class="w"></span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</span><span class="w"></span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="cm">/* hide icon */</span><span class="w"></span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span><span class="w"></span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span><span class="w"></span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</span><span class="p">);</span><span class="w"></span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-210" name="line-210"></a><span class="cp">#else</span>
+<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">status_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>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span><span class="w"></span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-219" name="line-219"></a><span class="p">}</span><span class="w"></span>
+<a id="line-220" name="line-220"></a>
+<a id="line-221" name="line-221"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-222" name="line-222"></a><span class="nf">enumerate_temporary_authorizations_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><span class="w"></span>
+<a id="line-223" name="line-223"></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><span class="w"></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><span class="w"></span>
+<a id="line-225" name="line-225"></a><span class="p">{</span><span class="w"></span>
+<a id="line-226" name="line-226"></a><span class="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="w"></span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-228" name="line-228"></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><span class="w"></span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></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><span class="w"></span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"></span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</span><span class="p">);</span><span class="w"></span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</span><span class="p">;</span><span class="w"></span>
+<a id="line-247" name="line-247"></a>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span><span class="w"></span>
+<a id="line-252" name="line-252"></a><span class="p">}</span><span class="w"></span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">)</span><span class="w"></span>
+<a id="line-256" name="line-256"></a><span class="p">{</span><span class="w"></span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span><span class="w"></span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-262" name="line-262"></a><span class="p">}</span><span class="w"></span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span><span class="w"></span>
+<a id="line-267" name="line-267"></a><span class="p">{</span><span class="w"></span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-269" name="line-269"></a><span class="p">}</span><span class="w"></span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-273" name="line-273"></a><span class="p">{</span><span class="w"></span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-275" name="line-275"></a><span class="p">}</span><span class="w"></span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</span><span class="p">)</span><span class="w"></span>
+<a id="line-279" name="line-279"></a><span class="p">{</span><span class="w"></span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span><span class="w"></span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span><span class="w"></span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-300" name="line-300"></a><span class="p">}</span><span class="w"></span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-304" name="line-304"></a><span class="p">{</span><span class="w"></span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-306" name="line-306"></a><span class="p">}</span><span class="w"></span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-309" name="line-309"></a><span class="nf">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-310" name="line-310"></a><span class="p">{</span><span class="w"></span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-313" name="line-313"></a><span class="p">}</span><span class="w"></span>
+<a id="line-314" name="line-314"></a>
+<a id="line-315" name="line-315"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"></span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="w"></span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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><span class="w"></span>
+<a id="line-318" name="line-318"></a><span class="p">{</span><span class="w"></span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-326" name="line-326"></a><span class="p">}</span><span class="w"></span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"></span>
+<a id="line-330" name="line-330"></a><span class="p">{</span><span class="w"></span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span><span class="w"></span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-334" name="line-334"></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">app_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_id</span><span class="p">;</span><span class="w"></span>
+<a id="line-336" name="line-336"></a>
+<a id="line-337" name="line-337"></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_getenv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</span><span class="p">;</span><span class="w"></span>
+<a id="line-339" name="line-339"></a>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">sm_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><span class="w"></span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span><span class="w"></span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">sm_proxy</span><span class="w"> </span><span 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>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">sm_proxy</span><span class="p">,</span><span class="w"></span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span><span class="w"></span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span><span class="w"></span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-368" name="line-368"></a>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span><span class="w"></span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-374" name="line-374"></a>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</span><span class="p">);</span><span class="w"></span>
+<a id="line-376" name="line-376"></a>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">client_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><span class="w"></span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span><span class="w"></span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span><span class="w"></span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span><span class="w"></span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span><span class="w"></span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span><span class="w"></span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span><span class="w"></span>
+<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">client_proxy</span><span class="w"> </span><span 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>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"></span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span><span class="w"></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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
+<a id="line-395" name="line-395"></a><span class="p">}</span><span class="w"></span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span><span class="w"></span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"></span>
+<a id="line-399" name="line-399"></a><span class="p">{</span><span class="w"></span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span><span class="w"></span>
+<a id="line-402" name="line-402"></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><span class="w"></span>
+<a id="line-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span><span class="w"></span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"></span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span><span class="w"></span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span><span class="w"></span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span><span class="w"></span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</span><span class="p">);</span><span class="w"></span>
+<a id="line-419" name="line-419"></a>
+<a id="line-420" name="line-420"></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><span class="w"></span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span><span class="w"></span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span><span class="w"></span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span><span class="w"></span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<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">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-443" name="line-443"></a>
+<a id="line-444" name="line-444"></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><span class="w"></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="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"></span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span><span class="w"></span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span><span class="w"></span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span><span class="w"></span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">))</span><span class="w"></span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">{</span><span class="w"></span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span><span class="w"></span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span><span class="w"></span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span><span class="w"></span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">}</span><span class="w"></span>
+<a id="line-456" name="line-456"></a>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-458" name="line-458"></a>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">register_client_to_gnome_session</span><span class="p">();</span><span class="w"></span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-462" name="line-462"></a>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span><span class="w"></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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-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">authority</span><span class="p">);</span><span class="w"></span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span><span class="w"></span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span><span class="w"></span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span><span class="w"></span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span><span class="w"></span>
+<a id="line-476" name="line-476"></a><span class="p">}</span><span class="w"></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-02-10-194918-4414-cppcheck@65a6c367e28e_master/index.html b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-02-10-194918-4414-cppcheck@65a6c367e28e_master/stats.html b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-02-10-194918-4414-cppcheck@65a6c367e28e_master/style.css b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-02-10-194918-4414-cppcheck@65a6c367e28e_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;
+}
diff --git a/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/0.html b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-05-23-093151-5604-cppcheck@13874beaa074_meson/index.html b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-05-23-093151-5604-cppcheck@13874beaa074_meson/stats.html b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-05-23-093151-5604-cppcheck@13874beaa074_meson/style.css b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-05-23-093151-5604-cppcheck@13874beaa074_meson/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;
+}
diff --git a/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/0.html b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-05-25-161821-0349-cppcheck@a3f91214bc68_master/index.html b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-05-25-161821-0349-cppcheck@a3f91214bc68_master/stats.html b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-05-25-161821-0349-cppcheck@a3f91214bc68_master/style.css b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-05-25-161821-0349-cppcheck@a3f91214bc68_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;
+}
diff --git a/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/0.html b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/index.html b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/stats.html b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/style.css b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_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;
+}
diff --git a/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/0.html b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/index.html b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/stats.html b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/style.css b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1/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;
+}
diff --git a/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/0.html b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/index.html b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/stats.html b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/style.css b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file/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;
+}
diff --git a/2023-08-31-195451-3891-cppcheck@015207383e78_master/0.html b/2023-08-31-195451-3891-cppcheck@015207383e78_master/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-08-31-195451-3891-cppcheck@015207383e78_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-08-31-195451-3891-cppcheck@015207383e78_master/index.html b/2023-08-31-195451-3891-cppcheck@015207383e78_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-08-31-195451-3891-cppcheck@015207383e78_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-08-31-195451-3891-cppcheck@015207383e78_master/stats.html b/2023-08-31-195451-3891-cppcheck@015207383e78_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-08-31-195451-3891-cppcheck@015207383e78_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-08-31-195451-3891-cppcheck@015207383e78_master/style.css b/2023-08-31-195451-3891-cppcheck@015207383e78_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-08-31-195451-3891-cppcheck@015207383e78_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;
+}
diff --git a/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/0.html b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-02-184611-1622-cppcheck@4b078a16e961_master/index.html b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-02-184611-1622-cppcheck@4b078a16e961_master/stats.html b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-02-184611-1622-cppcheck@4b078a16e961_master/style.css b/2023-09-02-184611-1622-cppcheck@4b078a16e961_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-09-02-184611-1622-cppcheck@4b078a16e961_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;
+}
diff --git a/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/0.html b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/index.html b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/stats.html b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/style.css b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson/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;
+}
diff --git a/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/0.html b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/0.html
new file mode 100644
index 0000000..b179177
--- /dev/null
+++ b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</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">&lt;string.h&gt;</span>
+<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span>
+<a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></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-03-043043-5605-cppcheck@6fbf55c280e5_master/index.html b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/index.html
new file mode 100644
index 0000000..e6e1402
--- /dev/null
+++ b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/index.html
@@ -0,0 +1,197 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>2</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="1.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">src/main.c</a></td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</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-03-043043-5605-cppcheck@6fbf55c280e5_master/stats.html b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/stats.html
new file mode 100644
index 0000000..8f9eaf7
--- /dev/null
+++ b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/stats.html
@@ -0,0 +1,167 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 1</span><br>
+&#160;&#160;&#160;1&#160;<a href="0.html"> src/main.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-03-043043-5605-cppcheck@6fbf55c280e5_master/style.css b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2023-09-03-043043-5605-cppcheck@6fbf55c280e5_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;
+}
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/0.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/1.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/2.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/3.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/4.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/5.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/6.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/index.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/stats.html b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/style.css b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-15-172653-3023-cppcheck@256d08c4a418_travis/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;
+}
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/0.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/1.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/2.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/3.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/4.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/5.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/6.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/index.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/stats.html b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/style.css b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-15-173245-9368-cppcheck@aacfb22a55ce_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;
+}
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/0.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/1.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/2.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/3.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/4.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/5.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/6.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/index.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/stats.html b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/style.css b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson/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;
+}
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/0.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/1.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/2.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/3.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/4.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/5.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/6.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/index.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/stats.html b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/style.css b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-26-105052-9928-cppcheck@ad6d40200d0a_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;
+}
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/0.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/1.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/2.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/3.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/4.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/5.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/6.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/index.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/stats.html b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/style.css b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1/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;
+}
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/0.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/0.html
new file mode 100644
index 0000000..95e5dbc
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/0.html
@@ -0,0 +1,1189 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/main.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> main.c</p>
+<a href="0.html#line-23"> missingInclude 23</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-33"> missingIncludeSystem 33</a><a href="0.html#line-35"> missingIncludeSystem 35</a><a href="0.html#line-47"> shadowVariable 47</a><a href="0.html#line-226"> shadowVariable 226</a><a href="0.html#line-316"> constParameterCallback 316</a><a href="0.html#line-392"> constParameterCallback 392</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * 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"> * Author: David Zeuthen &lt;[email protected]&gt;</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="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a><span class="cp">#endif</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR)</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libayatana-appindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libayatana-appindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#elif defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;libappindicator/app-indicator.h&gt;</span><span class="error2">&lt;--- Include file: <libappindicator/app-indicator.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="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">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cm">/* session management support for auto-restart */</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define SM_DBUS_NAME &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define SM_DBUS_PATH &quot;/org/gnome/SessionManager&quot;</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define SM_DBUS_INTERFACE &quot;org.gnome.SessionManager&quot;</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define SM_CLIENT_DBUS_INTERFACE &quot;org.gnome.SessionManager.ClientPrivate&quot;</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/* the Authority */</span>
+<a id="line-47" name="line-47"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="error2">&lt;--- Shadowed declaration</span>
+</span><a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* the session we are servicing */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitSubject</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="cm">/* the current set of temporary authorizations */</span>
+<a id="line-53" name="line-53"></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="n">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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 defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="n">AppIndicator</span><span class="w"> </span><span class="o">*</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="cp">#else</span>
+<a id="line-58" name="line-58"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_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-59" name="line-59"></a><span class="cp">#endif</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="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">sm_proxy</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GDBusProxy</span><span class="w"> </span><span class="o">*</span><span class="n">client_proxy</span><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>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-67" name="line-67"></a><span class="nf">revoke_tmp_authz_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-68" name="line-68"></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-69" name="line-69"></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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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-72" name="line-72"></a>
+<a id="line-73" name="line-73"></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-74" name="line-74"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">),</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error revoking temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-80" name="line-80"></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-81" name="line-81"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-82" name="line-82"></a><span class="p">}</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-85" name="line-85"></a><span class="nf">revoke_tmp_authz</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">polkit_authority_revoke_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">revoke_tmp_authz_cb</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="nb">NULL</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="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<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">on_menu_item_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-97" name="line-97"></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-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </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="cp">#else</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">on_status_icon_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-104" name="line-104"></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-105" name="line-105"></a><span class="p">{</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-107" name="line-107"></a><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-110" name="line-110"></a><span class="nf">on_status_icon_popup_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStatusIcon</span><span class="w"> </span><span class="o">*</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">button</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">activate_time</span><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">user_data</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">revoke_tmp_authz</span><span class="w"> </span><span class="p">();</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a><span class="cp">#endif</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-120" name="line-120"></a><span class="nf">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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="cp">#if 0</span>
+<a id="line-124" name="line-124"></a><span class="c"> GList *l;</span>
+<a id="line-125" name="line-125"></a><span class="c"> g_debug (&quot;have %d tmp authorizations&quot;, g_list_length (current_temporary_authorizations));</span>
+<a id="line-126" name="line-126"></a><span class="c"> for (l = current_temporary_authorizations; l != NULL; l = l-&gt;next)</span>
+<a id="line-127" name="line-127"></a><span class="c"> {</span>
+<a id="line-128" name="line-128"></a><span class="c"> PolkitTemporaryAuthorization *authz = POLKIT_TEMPORARY_AUTHORIZATION (l-&gt;data);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="c"> g_debug (&quot;have tmp authz for action %s (subject %s) with id %s (obtained %d, expires %d)&quot;,</span>
+<a id="line-131" name="line-131"></a><span class="c"> polkit_temporary_authorization_get_action_id (authz),</span>
+<a id="line-132" name="line-132"></a><span class="c"> polkit_subject_to_string (polkit_temporary_authorization_get_subject (authz)),</span>
+<a id="line-133" name="line-133"></a><span class="c"> polkit_temporary_authorization_get_id (authz),</span>
+<a id="line-134" name="line-134"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_obtained (authz),</span>
+<a id="line-135" name="line-135"></a><span class="c"> (gint) polkit_temporary_authorization_get_time_expires (authz));</span>
+<a id="line-136" name="line-136"></a><span class="c"> }</span>
+<a id="line-137" name="line-137"></a><span class="cp">#endif</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="cm">/* TODO:</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * - we could do something fancy like displaying a window with the tmp authz</span>
+<a id="line-142" name="line-142"></a><span class="cm"> * when the icon is clicked...</span>
+<a id="line-143" name="line-143"></a><span class="cm"> *</span>
+<a id="line-144" name="line-144"></a><span class="cm"> * - we could do some work using polkit_subject_exists() to ignore tmp authz</span>
+<a id="line-145" name="line-145"></a><span class="cm"> * for subjects that no longer exists.. this is because temporary authorizations</span>
+<a id="line-146" name="line-146"></a><span class="cm"> * are only valid for the subject that trigger the authentication dialog.</span>
+<a id="line-147" name="line-147"></a><span class="cm"> *</span>
+<a id="line-148" name="line-148"></a><span class="cm"> * Maybe the authority could do this, would probably involve some polling, but</span>
+<a id="line-149" name="line-149"></a><span class="cm"> * it seems cleaner to do this server side.</span>
+<a id="line-150" name="line-150"></a><span class="cm"> */</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">current_temporary_authorizations</span><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="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="cm">/* show icon */</span>
+<a id="line-155" name="line-155"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="w"> </span><span class="n">GtkWidget</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">menu</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">app_indicator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">app_indicator_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-polkit&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">APP_INDICATOR_CATEGORY_SYSTEM_SERVICES</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">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">_</span><span class="p">(</span><span class="s">&quot;Drop all elevated privileges&quot;</span><span class="p">));</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_menu_item_activate</span><span class="p">),</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu</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">app_indicator_set_menu</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">));</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/*Reshow icon from existing appindicator */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_ACTIVE</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="cp">#else</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status_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-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">status_icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_status_icon_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_status_icon_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the icon to drop all elevated privileges&quot;</span><span class="p">));</span>
+<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">status_icon</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;activate&quot;</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">on_status_icon_activate</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="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;popup-menu&quot;</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">on_status_icon_popup_menu</span><span class="p">),</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="cp">#endif</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">else</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="cm">/* hide icon */</span>
+<a id="line-203" name="line-203"></a><span class="cp">#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)</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">app_indicator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* keep the app_indicator, hide the icon or it won&#39;t come back*/</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">app_indicator_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">app_indicator</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">APP_INDICATOR_STATUS_PASSIVE</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="cp">#else</span>
+<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">status_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gtk_status_icon_set_visible</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">status_icon</span><span class="p">);</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">status_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-216" name="line-216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-217" name="line-217"></a><span class="cp">#endif</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="nf">enumerate_temporary_authorizations_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-223" name="line-223"></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-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="hll"><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AUTHORITY</span><span class="w"> </span><span class="p">(</span><span class="n">source_object</span><span class="p">);</span><span class="error2">&lt;--- Shadow variable</span>
+</span><a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">temporary_authorizations</span><span class="p">;</span>
+<a id="line-228" name="line-228"></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-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">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-233" name="line-233"></a><span class="w"> </span><span class="n">temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations_finish</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">res</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">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-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_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error enumerating temporary authorizations: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-239" name="line-239"></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-240" name="line-240"></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-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="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_temporary_authorizations</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">current_temporary_authorizations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temporary_authorizations</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">update_temporary_authorization_icon_real</span><span class="w"> </span><span class="p">();</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-255" name="line-255"></a><span class="nf">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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><span class="w"> </span><span class="n">polkit_authority_enumerate_temporary_authorizations</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">enumerate_temporary_authorizations_cb</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="p">}</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">on_authority_changed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-272" name="line-272"></a><span class="nf">stop_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-278" name="line-278"></a><span class="nf">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_okay</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">reason</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><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-281" name="line-281"></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-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_proxy_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;EndSessionResponse&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(bs)&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">is_okay</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">reason</span><span class="p">),</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to call EndSessionResponse: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-294" name="line-294"></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-295" name="line-295"></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-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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="nf">query_end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</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>
+<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">end_session_cb</span><span class="w"> </span><span class="p">(</span><span class="kt">void</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">end_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-316" name="line-316"></a><span class="hll"><span class="nf">signal_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GDBusProxy</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">sender_name</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">signal_name</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'signal_name' can be declared as pointer to const</span>
+</span><a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">parameters</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-318" name="line-318"></a><span class="p">{</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stop&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">stop_cb</span><span class="w"> </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="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">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;QueryEndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">query_end_session_cb</span><span class="w"> </span><span class="p">();</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">signal_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EndSession&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">end_session_cb</span><span class="w"> </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="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">register_client_to_gnome_session</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">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-332" name="line-332"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">res</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="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_id</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">app_id</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">client_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">startup_id</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">&quot;DESKTOP_AUTOSTART_ID&quot;</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">app_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;polkit-mate-authentication-agent-1.desktop&quot;</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">sm_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-341" name="line-341"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">SM_DBUS_PATH</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">SM_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">sm_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get session manager: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-350" name="line-350"></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-351" name="line-351"></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-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">res</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">sm_proxy</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;RegisterClient&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">app_id</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">startup_id</span><span class="p">),</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="cm">/* timeout */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</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="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to register client: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-365" name="line-365"></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-366" name="line-366"></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-367" name="line-367"></a><span class="w"> </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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_variant_is_of_type</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</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">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;RegisterClient returned unexpected type %s&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_variant_get_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">));</span>
+<a id="line-372" name="line-372"></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-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="n">g_variant_get</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;(&amp;o)&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">client_id</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">client_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-378" name="line-378"></a><span class="w"> </span><span class="n">G_DBUS_PROXY_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GDBusInterfaceInfo */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">SM_DBUS_NAME</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">client_id</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">SM_CLIENT_DBUS_INTERFACE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">);</span>
+<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">client_proxy</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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">g_message</span><span class="p">(</span><span class="s">&quot;Failed to get client proxy: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-388" name="line-388"></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-389" name="line-389"></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-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">client_proxy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;g-signal&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">signal_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="error2">&lt;--- You might need to cast the function pointer here</span>
+</span><a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></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-395" name="line-395"></a><span class="p">}</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="kt">int</span>
+<a id="line-398" name="line-398"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-402" name="line-402"></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-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</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="n">authority</span><span class="w"> </span><span class="o">=</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="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="cp">#if HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a><span class="cp">#endif</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="n">FALSE</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">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-421" name="line-421"></a><span class="w"> </span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-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">authority</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-425" name="line-425"></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-426" name="line-426"></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-427" name="line-427"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_authority_changed</span><span class="p">),</span>
+<a id="line-431" name="line-431"></a><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">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">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-436" name="line-436"></a><span class="w"> </span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_session_new_for_process_sync</span><span class="w"> </span><span class="p">(</span><span class="n">getpid</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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-438" name="line-438"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to determine the session we are in: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-440" name="line-440"></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-441" name="line-441"></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-442" name="line-442"></a><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">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-445" name="line-445"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_agent_listener_register</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">POLKIT_AGENT_REGISTER_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">session</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;/org/mate/PolicyKit1/AuthenticationAgent&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><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="o">&amp;</span><span class="n">error</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="n">g_printerr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Cannot register authentication agent: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-453" name="line-453"></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-454" name="line-454"></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-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="n">update_temporary_authorization_icon</span><span class="w"> </span><span class="p">(</span><span class="n">authority</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">register_client_to_gnome_session</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">g_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="nl">out</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">authority</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</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">authority</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">session</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><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><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">loop</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">ret</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/1.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/1.html
new file mode 100644
index 0000000..bf8ec00
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/1.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.h</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_LISTENER_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_LISTENER_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_LISTENER (polkit_mate_listener_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListener))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_LISTENER, PolkitMateListenerClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_LISTENER))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span><span class="w"> </span><span class="n">PolkitMateListener</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span><span class="w"> </span><span class="n">PolkitMateListenerClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_listener_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span>
+<a id="line-47" name="line-47"></a><span class="cp">#endif</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_LISTENER_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/2.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/2.html
new file mode 100644
index 0000000..bce6d3f
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/2.html
@@ -0,0 +1,2639 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.c</p>
+<a href="2.html#line-24"> missingInclude 24</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-39"> missingIncludeSystem 39</a><a href="2.html#line-99"> constVariablePointer 99</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-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">#define _GNU_SOURCE</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;fcntl.h&gt;</span><span class="error2">&lt;--- Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cp">#define RESPONSE_USER_SELECTED 1001</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">_PolkitMateAuthenticationDialogPrivate</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">user_combobox</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">prompt_label</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">password_entry</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">auth_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_label</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">grid_password</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_url</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><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-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</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">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">gboolean</span><span class="w"> </span><span class="n">is_running</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">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">store</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="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</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">PROP_0</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="p">};</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">N_COL</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">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-92" name="line-92"></a><span class="nf">user_combobox_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span>
+<a id="line-93" name="line-93"></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-94" name="line-94"></a><span class="w"> </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-95" name="line-95"></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-96" name="line-96"></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-97" name="line-97"></a><span class="p">{</span>
+<a id="line-98" name="line-98"></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-99" name="line-99"></a><span class="hll"><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><span class="error2">&lt;--- Variable 'indices' can be declared as pointer to const</span>
+</span><a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">sensitive</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">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">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span>
+<a id="line-103" name="line-103"></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-104" name="line-104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">indices</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-105" name="line-105"></a><span class="w"> </span><span class="n">sensitive</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-106" name="line-106"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">sensitive</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-108" name="line-108"></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-109" name="line-109"></a>
+<a id="line-110" name="line-110"></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><span class="w"> </span><span class="s">&quot;sensitive&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">sensitive</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="p">}</span>
+<a id="line-112" name="line-112"></a>
+<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">user_combobox_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">widget</span><span class="p">,</span>
+<a id="line-115" name="line-115"></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-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-118" name="line-118"></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-119" name="line-119"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">user_name</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">gtk_combo_box_get_active_iter</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">widget</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">))</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">user_name</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</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_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_name</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_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;selected-user&quot;</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">gtk_dialog_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><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* make the password entry and Authenticate button sensitive again */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</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><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a><span class="p">}</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="cp">#if HAVE_ACCOUNTSSERVICE</span>
+<a id="line-140" name="line-140"></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-141" name="line-141"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</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">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GDBusConnection</span><span class="w"> </span><span class="o">*</span><span class="n">connection</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">find_user_result</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">get_icon_result</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">icon_result_variant</span><span class="p">;</span>
+<a id="line-148" name="line-148"></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">user_path</span><span class="p">;</span>
+<a id="line-149" name="line-149"></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_filename</span><span class="p">;</span>
+<a id="line-150" name="line-150"></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-151" name="line-151"></a>
+<a id="line-152" name="line-152"></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-153" name="line-153"></a><span class="w"> </span><span class="n">connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bus_get_sync</span><span class="w"> </span><span class="p">(</span><span class="n">G_BUS_TYPE_SYSTEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to connect to system bus: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-158" name="line-158"></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-159" name="line-159"></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-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="n">find_user_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;/org/freedesktop/Accounts&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;FindUserByName&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(s)&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">username</span><span class="p">),</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(o)&quot;</span><span class="p">),</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">find_user_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-178" name="line-178"></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-179" name="line-179"></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-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="n">user_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">g_variant_get_child_value</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="nb">NULL</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">get_icon_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dbus_connection_call_sync</span><span class="w"> </span><span class="p">(</span><span class="n">connection</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">user_path</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.DBus.Properties&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Get&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_variant_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(ss)&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;org.freedesktop.Accounts.User&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;IconFile&quot;</span><span class="p">),</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">G_VARIANT_TYPE</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;(v)&quot;</span><span class="p">),</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">G_DBUS_CALL_FLAGS_NONE</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</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">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">find_user_result</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">get_icon_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-202" name="line-202"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts couldn&#39;t find user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-204" name="line-204"></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-205" name="line-205"></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-206" name="line-206"></a><span class="w"> </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">g_variant_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;v&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">icon_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_variant_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">icon_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-212" name="line-212"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Accounts didn&#39;t return a valid filename for user icon&quot;</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="w"> </span><span class="k">else</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">icon_filename</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><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="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<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">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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Couldn&#39;t open user icon: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-225" name="line-225"></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-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="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">icon_result_variant</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_variant_unref</span><span class="w"> </span><span class="p">(</span><span class="n">get_icon_result</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">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a><span class="cp">#else</span>
+<a id="line-235" name="line-235"></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-236" name="line-236"></a><span class="nf">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">username</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="p">{</span>
+<a id="line-238" name="line-238"></a><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-239" name="line-239"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">username</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_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-243" name="line-243"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-245" name="line-245"></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">&quot;%s/.face&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_dir</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="cm">/* TODO: we probably shouldn&#39;t hard-code the size to 16x16 */</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">16</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-248" name="line-248"></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-249" name="line-249"></a><span class="w"> </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">pixbuf</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+<a id="line-253" name="line-253"></a><span class="cp">#endif </span><span class="cm">/* HAVE_ACCOUNTSSERVICE */</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-256" name="line-256"></a><span class="nf">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="p">{</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</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">selected_index</span><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">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">;</span>
+<a id="line-260" name="line-260"></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-261" name="line-261"></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-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* if we&#39;ve already built the list of admin users once, then avoid</span>
+<a id="line-264" name="line-264"></a><span class="cm"> * doing it again.. (this is mainly used when the user entered the</span>
+<a id="line-265" name="line-265"></a><span class="cm"> * wrong password and the dialog is recycled)</span>
+<a id="line-266" name="line-266"></a><span class="cm"> */</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="mi">3</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_STRING</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">);</span>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select user...&quot;</span><span class="p">),</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">USERNAME_COL</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>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="cm">/* For each user */</span>
+<a id="line-281" name="line-281"></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">n</span><span class="w"> </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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">gecos</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">real_name</span><span class="p">;</span>
+<a id="line-285" name="line-285"></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-286" name="line-286"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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="cm">/* we&#39;re single threaded so this is fine */</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">errno</span><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="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwnam</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<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">passwd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error doing getpwnam(</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">): %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-294" name="line-294"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gecos</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_gecos</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-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gecos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">);</span>
+<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">first_comma</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="o">*</span><span class="n">first_comma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-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">if</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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-310" name="line-310"></a><span class="w"> </span><span class="n">real_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;%s (%s)&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">gecos</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">real_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">]);</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gecos</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="cm">/* Load users face */</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_user_icon</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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="cm">/* fall back to stock_person icon */</span>
+<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">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-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;stock_person&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><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="nb">NULL</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</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">gtk_list_store_set</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span><span class="w"> </span><span class="n">real_name</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">USERNAME_COL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</span><span class="p">],</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mi">-1</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">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">passwd</span><span class="o">-&gt;</span><span class="n">pw_uid</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">getuid</span><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="n">selected_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-339" name="line-339"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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>
+<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">real_name</span><span class="p">);</span>
+<a id="line-344" name="line-344"></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-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="w"> </span><span class="p">(</span><span class="n">combo</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">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-350" name="line-350"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-351" name="line-351"></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">combo</span><span class="p">),</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;pixbuf&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF_COL</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-358" name="line-358"></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-359" name="line-359"></a>
+<a id="line-360" name="line-360"></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-361" name="line-361"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-362" name="line-362"></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">combo</span><span class="p">),</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;text&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TEXT_COL</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</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">combo</span><span class="p">),</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">user_combobox_set_sensitive</span><span class="p">,</span>
+<a id="line-369" name="line-369"></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-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/* Select the default user */</span>
+<a id="line-372" name="line-372"></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">combo</span><span class="p">),</span><span class="w"> </span><span class="n">selected_index</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="cm">/* Listen when a new user is selected */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_signal_connect</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">combo</span><span class="p">),</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">user_combobox_changed</span><span class="p">),</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">dialog</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="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-382" name="line-382"></a><span class="nf">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">copy_pixbuf</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">vendor_pixbuf</span><span class="p">;</span>
+<a id="line-387" name="line-387"></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-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">copy_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-391" name="line-391"></a><span class="w"> </span><span class="n">vendor_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-392" name="line-392"></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-393" name="line-393"></a>
+<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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_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-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-397" name="line-397"></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-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">vendor_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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;No icon for themed icon with name &#39;%s&#39;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_DIALOG</span><span class="p">);</span>
+<a id="line-409" name="line-409"></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-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">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">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;dialog-password&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mi">48</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><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="nb">NULL</span><span class="p">);</span>
+<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">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-418" name="line-418"></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-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* need to copy the pixbuf since we&#39;re modifying it */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</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">copy_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-423" name="line-423"></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-424" name="line-424"></a>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="cm">/* blend the vendor icon in the bottom right quarter */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_pixbuf</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">copy_pixbuf</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mi">24</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mi">255</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">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="nl">out</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">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-437" name="line-437"></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-438" name="line-438"></a>
+<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">copy_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-440" name="line-440"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">copy_pixbuf</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_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-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">vendor_pixbuf</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="k">return</span><span class="w"> </span><span class="n">image</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="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-449" name="line-449"></a><span class="nf">polkit_mate_authentication_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-450" name="line-450"></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-451" name="line-451"></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-452" name="line-452"></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-453" name="line-453"></a><span class="p">{</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DETAILS</span><span class="p">:</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-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>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACTION_ID</span><span class="p">:</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_VENDOR</span><span class="p">:</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_VENDOR_URL</span><span class="p">:</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ICON_NAME</span><span class="p">:</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">break</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">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_USERS</span><span class="p">:</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</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>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-487" name="line-487"></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-488" name="line-488"></a><span class="w"> </span><span class="k">break</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="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-493" name="line-493"></a><span class="nf">polkit_mate_authentication_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-494" name="line-494"></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-495" name="line-495"></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-496" name="line-496"></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-497" name="line-497"></a><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</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><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MESSAGE</span><span class="p">:</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">break</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">/* TODO: rest of the properties */</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-509" name="line-509"></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-510" name="line-510"></a><span class="w"> </span><span class="k">break</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><span class="p">}</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></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-515" name="line-515"></a><span class="nf">add_row</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><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row</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">label_text</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">entry</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">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</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">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">label_text</span><span class="p">);</span>
+<a id="line-520" name="line-520"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="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">1.0</span><span class="p">);</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</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">gtk_widget_set_hexpand</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">FALSE</span><span class="p">);</span>
+<a id="line-525" name="line-525"></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>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-527" name="line-527"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</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">TRUE</span><span class="p">);</span>
+<a id="line-528" name="line-528"></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">entry</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">row</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-530" name="line-530"></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">entry</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="k">return</span><span class="w"> </span><span class="n">label</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-536" name="line-536"></a><span class="nf">action_id_activated</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">url_label</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-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="cp">#if 0</span>
+<a id="line-539" name="line-539"></a><span class="c"> GError *error;</span>
+<a id="line-540" name="line-540"></a><span class="c"> DBusGConnection *bus;</span>
+<a id="line-541" name="line-541"></a><span class="c"> DBusGProxy *manager_proxy;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="c"> error = NULL;</span>
+<a id="line-544" name="line-544"></a><span class="c"> bus = dbus_g_bus_get (DBUS_BUS_SESSION, &amp;error);</span>
+<a id="line-545" name="line-545"></a><span class="c"> if (bus == NULL)</span>
+<a id="line-546" name="line-546"></a><span class="c"> {</span>
+<a id="line-547" name="line-547"></a><span class="c"> g_warning (&quot;Couldn&#39;t connect to session bus: %s&quot;, error-&gt;message);</span>
+<a id="line-548" name="line-548"></a><span class="c"> g_error_free (error);</span>
+<a id="line-549" name="line-549"></a><span class="c"> goto out;</span>
+<a id="line-550" name="line-550"></a><span class="c"> }</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="c"> manager_proxy = dbus_g_proxy_new_for_name (bus,</span>
+<a id="line-553" name="line-553"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager&quot;,</span>
+<a id="line-554" name="line-554"></a><span class="c"> &quot;/&quot;,</span>
+<a id="line-555" name="line-555"></a><span class="c"> &quot;org.mate.PolicyKit.AuthorizationManager.SingleInstance&quot;);</span>
+<a id="line-556" name="line-556"></a><span class="c"> if (manager_proxy == NULL)</span>
+<a id="line-557" name="line-557"></a><span class="c"> {</span>
+<a id="line-558" name="line-558"></a><span class="c"> g_warning (&quot;Could not construct manager_proxy object; bailing out&quot;);</span>
+<a id="line-559" name="line-559"></a><span class="c"> goto out;</span>
+<a id="line-560" name="line-560"></a><span class="c"> }</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="c"> if (!dbus_g_proxy_call (manager_proxy,</span>
+<a id="line-563" name="line-563"></a><span class="c"> &quot;ShowAction&quot;,</span>
+<a id="line-564" name="line-564"></a><span class="c"> &amp;error,</span>
+<a id="line-565" name="line-565"></a><span class="c"> G_TYPE_STRING, gtk_label_get_current_uri (GTK_LABEL (url_label)),</span>
+<a id="line-566" name="line-566"></a><span class="c"> G_TYPE_INVALID,</span>
+<a id="line-567" name="line-567"></a><span class="c"> G_TYPE_INVALID))</span>
+<a id="line-568" name="line-568"></a><span class="c"> {</span>
+<a id="line-569" name="line-569"></a><span class="c"> if (error != NULL)</span>
+<a id="line-570" name="line-570"></a><span class="c"> {</span>
+<a id="line-571" name="line-571"></a><span class="c"> g_warning (&quot;Failed to call into manager: %s&quot;, error-&gt;message);</span>
+<a id="line-572" name="line-572"></a><span class="c"> g_error_free (error);</span>
+<a id="line-573" name="line-573"></a><span class="c"> }</span>
+<a id="line-574" name="line-574"></a><span class="c"> else</span>
+<a id="line-575" name="line-575"></a><span class="c"> {</span>
+<a id="line-576" name="line-576"></a><span class="c"> g_warning (&quot;Failed to call into manager&quot;);</span>
+<a id="line-577" name="line-577"></a><span class="c"> }</span>
+<a id="line-578" name="line-578"></a><span class="c"> goto out;</span>
+<a id="line-579" name="line-579"></a><span class="c"> }</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="c">out:</span>
+<a id="line-582" name="line-582"></a><span class="c"> ;</span>
+<a id="line-583" name="line-583"></a><span class="cp">#endif</span>
+<a id="line-584" name="line-584"></a><span class="p">}</span>
+<a id="line-585" name="line-585"></a>
+<a id="line-586" name="line-586"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-587" name="line-587"></a><span class="nf">polkit_mate_authentication_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-588" name="line-588"></a><span class="p">{</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="p">}</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-593" name="line-593"></a><span class="nf">polkit_mate_authentication_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-594" name="line-594"></a><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-605" name="line-605"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</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_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</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-611" name="line-611"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">store</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="p">}</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-618" name="line-618"></a><span class="nf">polkit_mate_dialog_add_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-619" name="line-619"></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">button_text</span><span class="p">,</span>
+<a id="line-620" name="line-620"></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-621" name="line-621"></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-622" name="line-622"></a><span class="p">{</span>
+<a id="line-623" name="line-623"></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-624" name="line-624"></a>
+<a id="line-625" name="line-625"></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">button_text</span><span class="p">);</span>
+<a id="line-626" name="line-626"></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="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</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">gtk_button_set_use_underline</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">TRUE</span><span class="p">);</span>
+<a id="line-629" name="line-629"></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">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;text-button&quot;</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">response_id</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">return</span><span class="w"> </span><span class="n">button</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-638" name="line-638"></a><span class="nf">polkit_mate_authentication_dialog_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-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><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">hbox</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">;</span>
+<a id="line-643" name="line-643"></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-644" name="line-644"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_expander</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">details_vbox</span><span class="p">;</span>
+<a id="line-647" name="line-647"></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-648" name="line-648"></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-649" name="line-649"></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-650" name="line-650"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">content_area</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_user_combobox</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">rows</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">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authentication_dialog_parent_class</span><span class="p">)</span><span class="o">-&gt;</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-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_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">dialog</span><span class="p">),</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="s">&quot;process-stop&quot;</span><span class="p">,</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="w"> </span><span class="o">=</span><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">dialog</span><span class="p">),</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Authenticate&quot;</span><span class="p">),</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">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><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">content_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </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>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></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-676" name="line-676"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span><span class="w"> </span><span class="cm">/* 2 * 5 + 2 = 12 */</span>
+<a id="line-677" name="line-677"></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">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</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="s">&quot;dialog-password&quot;</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">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-681" name="line-681"></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-682" name="line-682"></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">content_area</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-683" name="line-683"></a>
+<a id="line-684" name="line-684"></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">get_image</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-685" name="line-685"></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_CENTER</span><span class="p">);</span>
+<a id="line-686" name="line-686"></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-687" name="line-687"></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-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">main_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">10</span><span class="p">);</span>
+<a id="line-690" name="line-690"></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">main_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-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="cm">/* main message */</span>
+<a id="line-693" name="line-693"></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-694" name="line-694"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;big&gt;&lt;b&gt;%s&lt;/b&gt;&lt;/big&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-695" name="line-695"></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">s</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-697" name="line-697"></a>
+<a id="line-698" name="line-698"></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-699" name="line-699"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-700" name="line-700"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-701" name="line-701"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-702" name="line-702"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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="cm">/* secondary message */</span>
+<a id="line-705" name="line-705"></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-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<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">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>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="s">&quot;Authentication as one of the users below is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-713" name="line-713"></a><span class="w"> </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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</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-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">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>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="s">&quot;Authentication is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="k">else</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="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>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;An application is attempting to perform an action that requires privileges. &quot;</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="s">&quot;Authentication as the super user is required to perform this action.&quot;</span><span class="p">));</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">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-729" name="line-729"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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.5</span><span class="p">);</span>
+<a id="line-730" name="line-730"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-731" name="line-731"></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">label</span><span class="p">),</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span>
+<a id="line-732" name="line-732"></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">main_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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</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">/* user combobox */</span>
+<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">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</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_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">main_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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">create_user_combobox</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</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">have_user_combobox</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-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">else</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="mi">0</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>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="cm">/* password entry */</span>
+<a id="line-750" name="line-750"></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-751" name="line-751"></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">main_vbox</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-752" name="line-752"></a>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">grid_password</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-754" name="line-754"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-755" name="line-755"></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_password</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-756" name="line-756"></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">grid_password</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-757" name="line-757"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_row</span><span class="w"> </span><span class="p">(</span><span class="n">grid_password</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">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</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_signal_connect_swapped</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_activate_default</span><span class="p">),</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">dialog</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grid_password</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="cm">/* initially never show the password entry stuff; we&#39;ll toggle it on/off so it&#39;s</span>
+<a id="line-767" name="line-767"></a><span class="cm"> * only shown when prompting for a password */</span>
+<a id="line-768" name="line-768"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="cm">/* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */</span>
+<a id="line-771" name="line-771"></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-772" name="line-772"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-773" name="line-773"></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">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">label</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="cm">/* Details */</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">details_expander</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_expander_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;_Details&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">));</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gtk_expander_set_use_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EXPANDER</span><span class="w"> </span><span class="p">(</span><span class="n">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-779" name="line-779"></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">content_area</span><span class="p">),</span><span class="w"> </span><span class="n">details_expander</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-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">details_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">10</span><span class="p">);</span>
+<a id="line-782" name="line-782"></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">details_expander</span><span class="p">),</span><span class="w"> </span><span class="n">details_vbox</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">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-785" name="line-785"></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">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span>
+<a id="line-786" name="line-786"></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-787" name="line-787"></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-788" name="line-788"></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">details_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="cm">/* TODO: sort keys? */</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">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-793" name="line-793"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_details_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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">keys</span><span class="p">[</span><span class="n">n</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">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></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">polkit_details_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span><span class="w"> </span><span class="n">key</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">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-806" name="line-806"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-807" name="line-807"></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">s</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></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-811" name="line-811"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;%s:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-816" name="line-816"></a>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">rows</span><span class="o">++</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </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="cm">/* --- */</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></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-825" name="line-825"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-829" name="line-829"></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">s</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a>
+<a id="line-832" name="line-832"></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-833" name="line-833"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.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">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Action:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate-link&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">action_id_activated</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>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to edit %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-841" name="line-841"></a>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="cm">/* --- */</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></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-845" name="line-845"></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">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;a href=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;%s&lt;/a&gt;&lt;/small&gt;&quot;</span><span class="p">,</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-849" name="line-849"></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">s</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">s</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">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-853" name="line-853"></a><span class="w"> </span><span class="n">gtk_label_set_yalign</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">1.0</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">add_row</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">rows</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;&lt;small&gt;&lt;b&gt;Vendor:&lt;/b&gt;&lt;/small&gt;&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">label</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click to open %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor_url</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_markup</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">s</span><span class="p">);</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="cm">/* Disable password entry and authenticate until have a user selected */</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">have_user_combobox</span><span class="w"> </span><span class="o">&amp;&amp;</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">GTK_COMBO_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">user_combobox</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-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="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">auth_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</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>
+<a id="line-869" name="line-869"></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">dialog</span><span class="p">));</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="p">}</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-874" name="line-874"></a><span class="nf">polkit_mate_authentication_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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">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-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_finalize</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_property</span><span class="p">;</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_property</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_constructed</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">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-884" name="line-884"></a><span class="w"> </span><span class="n">PROP_DETAILS</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;details&quot;</span><span class="p">,</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">POLKIT_TYPE_DETAILS</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_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-896" name="line-896"></a><span class="w"> </span><span class="n">PROP_ACTION_ID</span><span class="p">,</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;action-id&quot;</span><span class="p">,</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_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-908" name="line-908"></a><span class="w"> </span><span class="n">PROP_VENDOR</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor&quot;</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-920" name="line-920"></a><span class="w"> </span><span class="n">PROP_VENDOR_URL</span><span class="p">,</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-932" name="line-932"></a><span class="w"> </span><span class="n">PROP_ICON_NAME</span><span class="p">,</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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_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-944" name="line-944"></a><span class="w"> </span><span class="n">PROP_MESSAGE</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;message&quot;</span><span class="p">,</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_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-956" name="line-956"></a><span class="w"> </span><span class="n">PROP_USERS</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;users&quot;</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><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="nb">NULL</span><span class="p">,</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">G_TYPE_STRV</span><span class="p">,</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</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">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-968" name="line-968"></a><span class="w"> </span><span class="n">PROP_SELECTED_USER</span><span class="p">,</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;selected-user&quot;</span><span class="p">,</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="w"> </span><span class="o">|</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="w"> </span><span class="o">|</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-977" name="line-977"></a><span class="p">}</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="cm">/**</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * polkit_mate_authentication_dialog_new:</span>
+<a id="line-981" name="line-981"></a><span class="cm"> *</span>
+<a id="line-982" name="line-982"></a><span class="cm"> * Yada yada yada...</span>
+<a id="line-983" name="line-983"></a><span class="cm"> *</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * Returns: A new password dialog.</span>
+<a id="line-985" name="line-985"></a><span class="cm"> **/</span>
+<a id="line-986" name="line-986"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-987" name="line-987"></a><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-989" name="line-989"></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">vendor_url</span><span class="p">,</span>
+<a id="line-990" name="line-990"></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-991" name="line-991"></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">message_markup</span><span class="p">,</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span>
+<a id="line-996" name="line-996"></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-997" name="line-997"></a>
+<a id="line-998" name="line-998"></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">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="s">&quot;action-id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="s">&quot;vendor-url&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor_url</span><span class="p">,</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="s">&quot;icon-name&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="s">&quot;message&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">message_markup</span><span class="p">,</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="s">&quot;details&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="s">&quot;users&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">users</span><span class="p">,</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">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">dialog</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">gtk_window_set_position</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-1011" name="line-1011"></a><span class="w"> </span><span class="n">gtk_window_set_modal</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-1012" name="line-1012"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</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-1013" name="line-1013"></a><span class="w"> </span><span class="n">gtk_window_set_keep_above</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-1014" name="line-1014"></a><span class="w"> </span><span class="n">gtk_window_set_title</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">_</span><span class="p">(</span><span class="s">&quot;Authenticate&quot;</span><span class="p">));</span>
+<a id="line-1015" name="line-1015"></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">&quot;close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_hide</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</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="k">return</span><span class="w"> </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-1018" name="line-1018"></a><span class="p">}</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="cm">/**</span>
+<a id="line-1021" name="line-1021"></a><span class="cm"> * polkit_mate_authentication_dialog_indicate_error:</span>
+<a id="line-1022" name="line-1022"></a><span class="cm"> * @dialog: the auth dialog</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> *</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> * Call this function to indicate an authentication error; typically shakes the window</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> **/</span>
+<a id="line-1026" name="line-1026"></a><span class="kt">void</span>
+<a id="line-1027" name="line-1027"></a><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1028" name="line-1028"></a><span class="p">{</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">diff</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="cm">/* TODO: detect compositing manager and do fancy stuff here */</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">gtk_window_get_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">dialog</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </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</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-15</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">diff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">15</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">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">dialog</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">diff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_events_pending</span><span class="w"> </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><span class="w"> </span><span class="n">gtk_main_iteration</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_usleep</span><span class="w"> </span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </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">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">dialog</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-1055" name="line-1055"></a><span class="p">}</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="cm">/**</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_user_is_selected:</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> *</span>
+<a id="line-1061" name="line-1061"></a><span class="cm"> * Runs @dialog in a recursive main loop until a user have been selected.</span>
+<a id="line-1062" name="line-1062"></a><span class="cm"> *</span>
+<a id="line-1063" name="line-1063"></a><span class="cm"> * If there is only one element in the the users array (which is set upon construction) or</span>
+<a id="line-1064" name="line-1064"></a><span class="cm"> * an user has already been selected, this function returns immediately with the return</span>
+<a id="line-1065" name="line-1065"></a><span class="cm"> * value %TRUE.</span>
+<a id="line-1066" name="line-1066"></a><span class="cm"> *</span>
+<a id="line-1067" name="line-1067"></a><span class="cm"> * Returns: %TRUE if a user is selected (use polkit_mate_dialog_get_selected_user() to obtain the user) or</span>
+<a id="line-1068" name="line-1068"></a><span class="cm"> * %FALSE if the dialog was cancelled.</span>
+<a id="line-1069" name="line-1069"></a><span class="cm"> **/</span>
+<a id="line-1070" name="line-1070"></a><span class="n">gboolean</span>
+<a id="line-1071" name="line-1071"></a><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="p">{</span>
+<a id="line-1073" name="line-1073"></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-1074" name="line-1074"></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-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></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-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="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></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-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</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="nl">out</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">ret</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="cm">/**</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> * polkit_mate_authentication_dialog_run_until_response_for_prompt:</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> * @prompt: The prompt to present the user with.</span>
+<a id="line-1101" name="line-1101"></a><span class="cm"> * @echo_chars: Whether characters should be echoed in the password entry box.</span>
+<a id="line-1102" name="line-1102"></a><span class="cm"> * @was_cancelled: Set to %TRUE if the dialog was cancelled.</span>
+<a id="line-1103" name="line-1103"></a><span class="cm"> * @new_user_selected: Set to %TRUE if another user was selected.</span>
+<a id="line-1104" name="line-1104"></a><span class="cm"> *</span>
+<a id="line-1105" name="line-1105"></a><span class="cm"> * Runs @dialog in a recursive main loop until a response to @prompt have been obtained from the user.</span>
+<a id="line-1106" name="line-1106"></a><span class="cm"> *</span>
+<a id="line-1107" name="line-1107"></a><span class="cm"> * Returns: The response (free with g_free()) or %NULL if one of @was_cancelled or @new_user_selected</span>
+<a id="line-1108" name="line-1108"></a><span class="cm"> * has been set to %TRUE.</span>
+<a id="line-1109" name="line-1109"></a><span class="cm"> **/</span>
+<a id="line-1110" name="line-1110"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1111" name="line-1111"></a><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">prompt</span><span class="p">,</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response</span><span class="p">;</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">prompt_label</span><span class="p">),</span><span class="w"> </span><span class="n">prompt</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gtk_entry_set_visibility</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</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-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</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-1134" name="line-1134"></a>
+<a id="line-1135" name="line-1135"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></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-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></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="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">);</span>
+<a id="line-1141" name="line-1141"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grid_password</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a>
+<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">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-1146" name="line-1146"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">password_entry</span><span class="p">)));</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">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">RESPONSE_USER_SELECTED</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_user_selected</span><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><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">was_cancelled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</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-1158" name="line-1158"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1159" name="line-1159"></a>
+<a id="line-1160" name="line-1160"></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-1161" name="line-1161"></a><span class="p">}</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="cm">/**</span>
+<a id="line-1164" name="line-1164"></a><span class="cm"> * polkit_mate_authentication_dialog_get_selected_user:</span>
+<a id="line-1165" name="line-1165"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1166" name="line-1166"></a><span class="cm"> *</span>
+<a id="line-1167" name="line-1167"></a><span class="cm"> * Gets the currently selected user.</span>
+<a id="line-1168" name="line-1168"></a><span class="cm"> *</span>
+<a id="line-1169" name="line-1169"></a><span class="cm"> * Returns: The currently selected user (free with g_free()) or %NULL if no user is currently selected.</span>
+<a id="line-1170" name="line-1170"></a><span class="cm"> **/</span>
+<a id="line-1171" name="line-1171"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1172" name="line-1172"></a><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span>
+<a id="line-1173" name="line-1173"></a><span class="p">{</span>
+<a id="line-1174" name="line-1174"></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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">selected_user</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>
+<a id="line-1177" name="line-1177"></a><span class="kt">void</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></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_markup</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="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">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info_label</span><span class="p">),</span><span class="w"> </span><span class="n">info_markup</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a><span class="p">}</span>
+<a id="line-1183" name="line-1183"></a>
+<a id="line-1184" name="line-1184"></a><span class="cm">/**</span>
+<a id="line-1185" name="line-1185"></a><span class="cm"> * polkit_mate_authentication_dialog_cancel:</span>
+<a id="line-1186" name="line-1186"></a><span class="cm"> * @dialog: A #PolkitMateAuthenticationDialog.</span>
+<a id="line-1187" name="line-1187"></a><span class="cm"> *</span>
+<a id="line-1188" name="line-1188"></a><span class="cm"> * Cancels the dialog if it is currenlty running.</span>
+<a id="line-1189" name="line-1189"></a><span class="cm"> *</span>
+<a id="line-1190" name="line-1190"></a><span class="cm"> * Returns: %TRUE if the dialog was running.</span>
+<a id="line-1191" name="line-1191"></a><span class="cm"> **/</span>
+<a id="line-1192" name="line-1192"></a><span class="n">gboolean</span>
+<a id="line-1193" name="line-1193"></a><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dialog</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_running</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">gtk_dialog_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><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a>
+<a id="line-1200" name="line-1200"></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-1201" name="line-1201"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/3.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/3.html
new file mode 100644
index 0000000..6ad06dd
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/3.html
@@ -0,0 +1,393 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticationdialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticationdialog.h</p>
+<a href="3.html#line-26"> missingIncludeSystem 26</a><a href="3.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATION_DIALOG_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-30" name="line-30"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG (polkit_mate_authentication_dialog_get_type ())</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialog))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG, PolkitMateAuthenticationDialogClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), POLKIT_MATE_TYPE_AUTHENTICATION_DIALOG))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialog</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="p">;</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">_PolkitMateAuthenticationDialog</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">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitMateAuthenticationDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="p">};</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticationDialogClass</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">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</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="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-56" name="line-56"></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">vendor</span><span class="p">,</span>
+<a id="line-57" name="line-57"></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">vendor_url</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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">message_markup</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-65" name="line-65"></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">prompt</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_chars</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">new_user_selected</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticationDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-72" name="line-72"></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_markup</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-75" name="line-75"></a><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>
+<a id="line-78" name="line-78"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATION_DIALOG_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/4.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/4.html
new file mode 100644
index 0000000..67c8d37
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/4.html
@@ -0,0 +1,1269 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.c</p>
+<a href="4.html#line-23"> missingInclude 23</a><a href="4.html#line-25"> missingIncludeSystem 25</a><a href="4.html#line-26"> missingIncludeSystem 26</a><a href="4.html#line-27"> missingIncludeSystem 27</a><a href="4.html#line-28"> missingIncludeSystem 28</a><a href="4.html#line-29"> missingIncludeSystem 29</a><a href="4.html#line-31"> missingIncludeSystem 31</a><a href="4.html#line-32"> missingIncludeSystem 32</a><a href="4.html#line-512"> constParameterPointer 512</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;pwd.h&gt;</span><span class="error2">&lt;--- Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkit/polkit.h&gt;</span><span class="error2">&lt;--- Include file: <polkit/polkit.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;polkitagent/polkitagent.h&gt;</span><span class="error2">&lt;--- Include file: <polkitagent/polkitagent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-35" name="line-35"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticationdialog.h&quot;</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</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">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><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-45" name="line-45"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">users</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="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">was_cancelled</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">new_user_selected</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">selected_user</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">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">dialog</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GMainLoop</span><span class="w"> </span><span class="o">*</span><span class="n">loop</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</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="n">parent_class</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<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">enum</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">COMPLETED_SIGNAL</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="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="mi">0</span><span class="p">};</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><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="kt">void</span>
+<a id="line-79" name="line-79"></a><span class="nf">polkit_mate_authenticator_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="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="nf">polkit_mate_authenticator_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-85" name="line-85"></a><span class="p">{</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">object</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">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><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_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</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">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">);</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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-96" name="line-96"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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_unref</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_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">!=</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><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="n">g_main_loop_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_mate_authenticator_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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="kt">void</span>
+<a id="line-118" name="line-118"></a><span class="nf">polkit_mate_authenticator_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</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="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</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">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-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_finalize</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="cm">/**</span>
+<a id="line-127" name="line-127"></a><span class="cm"> * PolkitMateAuthenticator::completed:</span>
+<a id="line-128" name="line-128"></a><span class="cm"> * @authenticator: A #PolkitMateAuthenticator.</span>
+<a id="line-129" name="line-129"></a><span class="cm"> * @gained_authorization: Whether the authorization was gained.</span>
+<a id="line-130" name="line-130"></a><span class="cm"> * @dismissed: Whether the dialog was dismissed.</span>
+<a id="line-131" name="line-131"></a><span class="cm"> *</span>
+<a id="line-132" name="line-132"></a><span class="cm"> * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator</span>
+<a id="line-133" name="line-133"></a><span class="cm"> * upon receiving this signal.</span>
+<a id="line-134" name="line-134"></a><span class="cm"> **/</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">COMPLETED_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* class offset */</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator */</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* accumulator data */</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_cclosure_marshal_generic</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><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">G_TYPE_BOOLEAN</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="p">}</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span>
+<a id="line-149" name="line-149"></a><span class="nf">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAuthority</span><span class="w"> </span><span class="o">*</span><span class="n">authority</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">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">action_descs</span><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">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">result</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">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-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">action_descs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_enumerate_actions_sync</span><span class="w"> </span><span class="p">(</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-161" name="line-161"></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">action_descs</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-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="n">PolkitActionDescription</span><span class="w"> </span><span class="o">*</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_ACTION_DESCRIPTION</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<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">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">polkit_action_description_get_action_id</span><span class="w"> </span><span class="p">(</span><span class="n">action_desc</span><span class="p">),</span><span class="w"> </span><span class="n">action_id</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">result</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">action_desc</span><span class="p">);</span>
+<a id="line-168" name="line-168"></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-169" name="line-169"></a><span class="w"> </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="nl">out</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">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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_unref</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">action_descs</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">return</span><span class="w"> </span><span class="n">result</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>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-181" name="line-181"></a><span class="nf">on_dialog_deleted</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-182" name="line-182"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-183" name="line-183"></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-184" name="line-184"></a><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-191" name="line-191"></a><span class="nf">on_user_selected</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-192" name="line-192"></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-193" name="line-193"></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-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</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="cm">/* clear any previous messages */</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&quot;</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-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="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span>
+<a id="line-205" name="line-205"></a><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-206" name="line-206"></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">message</span><span class="p">,</span>
+<a id="line-207" name="line-207"></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-208" name="line-208"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-209" name="line-209"></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">cookie</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-213" name="line-213"></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-214" name="line-214"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n</span><span class="p">;</span>
+<a id="line-215" name="line-215"></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-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</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">POLKIT_MATE_TYPE_AUTHENTICATOR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></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-220" name="line-220"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_authority_get_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* GCancellable* */</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</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="n">g_critical</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Error getting authority: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-224" name="line-224"></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-225" name="line-225"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">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">message</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_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">icon_name</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">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-232" name="line-232"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</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">details</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">cookie</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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">identities</span><span class="p">);</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_list_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_desc_for_action</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">authority</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">);</span>
+<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">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">error</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">authenticator</span><span class="o">-&gt;</span><span class="n">users</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">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">identities</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-243" name="line-243"></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">authenticator</span><span class="o">-&gt;</span><span class="n">identities</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="w"> </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="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="o">++</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">PolkitUnixUser</span><span class="w"> </span><span class="o">*</span><span class="n">user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_UNIX_USER</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="kt">uid_t</span><span class="w"> </span><span class="n">uid</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">passwd</span><span class="w"> </span><span class="o">*</span><span class="n">passwd</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">uid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_get_uid</span><span class="w"> </span><span class="p">(</span><span class="n">user</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">passwd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">getpwuid</span><span class="w"> </span><span class="p">(</span><span class="n">uid</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">[</span><span class="n">n</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">passwd</span><span class="o">-&gt;</span><span class="n">pw_name</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>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_new</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">polkit_action_description_get_vendor_url</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">action_desc</span><span class="p">),</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">details</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">users</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;delete-event&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_dialog_deleted</span><span class="p">),</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;notify::selected-user&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">on_user_selected</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">authenticator</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="nl">error</span><span class="p">:</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</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>
+<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">session_request</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-280" name="line-280"></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">request</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-282" name="line-282"></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-283" name="line-283"></a><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">password</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">modified_request</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">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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="c1">//g_debug (&quot;in conversation_pam_prompt, request=&#39;%s&#39;, echo_on=%d&quot;, request, echo_on);</span>
+<a id="line-291" name="line-291"></a>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="cm">/* Fix up, and localize, password prompt if it&#39;s password auth */</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">g_ascii_strncasecmp</span><span class="w"> </span><span class="p">(</span><span class="n">request</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;password:&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">9</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-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">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">g_get_user_name</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</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-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password for %s:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">modified_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Password:&quot;</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">else</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">modified_request</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">request</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_WINDOW</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))))</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_window_present_with_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gdk_x11_get_server_time</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">))));</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">password</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_run_until_response_for_prompt</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">modified_request</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">echo_on</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/* cancel auth unless user provided a password */</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">password</span><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="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-326" name="line-326"></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-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="k">else</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">polkit_agent_session_response</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span><span class="w"> </span><span class="n">password</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="n">password</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="nl">out</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">modified_request</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-339" name="line-339"></a><span class="nf">session_show_error</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-340" name="line-340"></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">msg</span><span class="p">,</span>
+<a id="line-341" name="line-341"></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-342" name="line-342"></a><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><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">s</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">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</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">s</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="nf">session_show_info</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</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">msg</span><span class="p">,</span>
+<a id="line-354" name="line-354"></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-355" name="line-355"></a><span class="p">{</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></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_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</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">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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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>
+<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-368" name="line-368"></a><span class="nf">session_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentSession</span><span class="w"> </span><span class="o">*</span><span class="n">session</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-370" name="line-370"></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-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gained_authorization</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="c1">//g_debug (&quot;in conversation_done gained=%d&quot;, gained_authorization);</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_main_loop_quit</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</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="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-382" name="line-382"></a><span class="nf">do_initiate</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-383" name="line-383"></a><span class="p">{</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">PolkitIdentity</span><span class="w"> </span><span class="o">*</span><span class="n">identity</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_tries</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_window_present</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">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">polkit_mate_authentication_dialog_run_until_user_is_selected</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">)))</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="cm">/* user cancelled the dialog */</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;User cancelled before selecting a user&quot;);*/</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-395" name="line-395"></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-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="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_loop_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="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">num_tries</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</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="nl">try_again</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">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_get_selected_user</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">/*g_debug (&quot;Authenticating user %s&quot;, authenticator-&gt;selected_user);*/</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">identity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_unix_user_new_for_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">selected_user</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_agent_session_new</span><span class="w"> </span><span class="p">(</span><span class="n">identity</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</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">identity</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;request&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_request</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">authenticator</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">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;show-info&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_info</span><span class="p">),</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">authenticator</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_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;show-error&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_show_error</span><span class="p">),</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">session_completed</span><span class="p">),</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">polkit_agent_session_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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_main_loop_run</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">loop</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/*g_debug (&quot;gained_authorization=%d was_cancelled=%d new_user_selected=%d.&quot;,</span>
+<a id="line-439" name="line-439"></a><span class="cm"> authenticator-&gt;gained_authorization,</span>
+<a id="line-440" name="line-440"></a><span class="cm"> authenticator-&gt;was_cancelled,</span>
+<a id="line-441" name="line-441"></a><span class="cm"> authenticator-&gt;new_user_selected);*/</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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="cm">/*g_debug (&quot;New user selected&quot;);*/</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">new_user_selected</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-447" name="line-447"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><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="k">goto</span><span class="w"> </span><span class="n">try_again</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">num_tries</span><span class="o">++</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">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Your authentication attempt was unsuccessful. Please try again.&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;&lt;/b&gt;&quot;</span><span class="p">,</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="n">polkit_mate_authentication_dialog_set_info_message</span><span class="w"> </span><span class="p">(</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">),</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">s</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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="cm">/* shake the dialog to indicate error */</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_indicate_error</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="p">));</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_tries</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</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="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">try_again</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><span class="w"> </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>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">gained_authorization</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="p">}</span>
+<a id="line-489" name="line-489"></a>
+<a id="line-490" name="line-490"></a><span class="kt">void</span>
+<a id="line-491" name="line-491"></a><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="cm">/* run from idle since we&#39;re going to block the main loop in the dialog (which has a recursive mainloop) */</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">do_initiate</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">authenticator</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="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">polkit_mate_authentication_dialog_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">dialog</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">authenticator</span><span class="o">-&gt;</span><span class="n">was_cancelled</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-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">authenticator</span><span class="o">-&gt;</span><span class="n">session</span><span class="w"> </span><span class="o">!=</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="p">{</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">polkit_agent_session_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">session</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="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></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-512" name="line-512"></a><span class="hll"><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'authenticator' can be declared as pointer to const</span>
+</span><a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">authenticator</span><span class="o">-&gt;</span><span class="n">cookie</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/5.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/5.html
new file mode 100644
index 0000000..b1c66d2
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/5.html
@@ -0,0 +1,351 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmateauthenticator.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmateauthenticator.h</p>
+<a href="5.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __POLKIT_MATE_AUTHENTICATOR_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-29" name="line-29"></a><span class="k">extern</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="w"> </span><span class="p">{</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">#define POLKIT_MATE_TYPE_AUTHENTICATOR (polkit_mate_authenticator_get_type())</span>
+<a id="line-33" name="line-33"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticator))</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-35" name="line-35"></a><span class="cp">#define POLKIT_MATE_AUTHENTICATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_MATE_TYPE_AUTHENTICATOR, PolkitMateAuthenticatorClass))</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define POLKIT_MATE_IS_AUTHENTICATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_MATE_TYPE_AUTHENTICATOR))</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticator</span><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateAuthenticatorClass</span><span class="w"> </span><span class="n">PolkitMateAuthenticatorClass</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_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">action_id</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">polkit_mate_authenticator_get_cookie</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#ifdef __cplusplus</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="cp">#endif</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="cp">#endif </span><span class="cm">/* __POLKIT_MATE_AUTHENTICATOR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/6.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/6.html
new file mode 100644
index 0000000..79a947d
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/6.html
@@ -0,0 +1,761 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: src/polkitmatelistener.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> polkitmatelistener.c</p>
+<a href="6.html#line-23"> missingInclude 23</a><a href="6.html#line-25"> missingIncludeSystem 25</a><a href="6.html#line-26"> missingIncludeSystem 26</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></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) 2009 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Public License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: David Zeuthen &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmatelistener.h&quot;</span>
+<a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;polkitmateauthenticator.h&quot;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListener</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* we support multiple authenticators - they are simply queued up */</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">authenticators</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">active_authenticator</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_PolkitMateListenerClass</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="n">parent_class</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>
+<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-48" name="line-48"></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">message</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-51" name="line-51"></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">cookie</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-55" name="line-55"></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-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-58" name="line-58"></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-59" name="line-59"></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-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="n">G_DEFINE_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="p">,</span><span class="w"> </span><span class="n">polkit_mate_listener</span><span class="p">,</span><span class="w"> </span><span class="n">POLKIT_AGENT_TYPE_LISTENER</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<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">polkit_mate_listener_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="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">polkit_mate_listener_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-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<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">polkit_mate_listener_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-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">polkit_mate_listener_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListenerClass</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">gobject_class</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">PolkitAgentListenerClass</span><span class="w"> </span><span class="o">*</span><span class="n">listener_class</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">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-82" name="line-82"></a><span class="w"> </span><span class="n">listener_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</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">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_finalize</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">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">listener_class</span><span class="o">-&gt;</span><span class="n">initiate_authentication_finish</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication_finish</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="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span>
+<a id="line-91" name="line-91"></a><span class="nf">polkit_mate_listener_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">POLKIT_AGENT_LISTENER</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">POLKIT_MATE_TYPE_LISTENER</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</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="k">typedef</span><span class="w"> </span><span class="k">struct</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">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</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">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">gulong</span><span class="w"> </span><span class="n">cancel_id</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span><span class="w"> </span><span class="n">AuthData</span><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="n">AuthData</span><span class="w"> </span><span class="o">*</span>
+<a id="line-108" name="line-108"></a><span class="nf">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</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">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">data</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">AuthData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">listener</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</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">authenticator</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">task</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</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">cancellable</span><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="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>
+<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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<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">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">);</span>
+<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="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_id</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-132" name="line-132"></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-133" name="line-133"></a><span class="p">}</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-136" name="line-136"></a><span class="nf">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">polkit_mate_authenticator_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">POLKIT_MATE_AUTHENTICATOR</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-143" name="line-143"></a><span class="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="nf">authenticator_completed</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">gained_authorization</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">dismissed</span><span class="p">,</span>
+<a id="line-149" name="line-149"></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-150" name="line-150"></a><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">authenticator</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="p">)</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">active_authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</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">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</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="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dismissed</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">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">POLKIT_ERROR_CANCELLED</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Authentication dialog was dismissed by the user&quot;</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>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_task_return_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">task</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">listener</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">auth_data_free</span><span class="w"> </span><span class="p">(</span><span class="n">data</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="nf">cancelled_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-177" name="line-177"></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-178" name="line-178"></a><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">AuthData</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">user_data</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">polkit_mate_authenticator_cancel</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">authenticator</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">polkit_mate_listener_initiate_authentication</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">agent_listener</span><span class="p">,</span>
+<a id="line-186" name="line-186"></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_id</span><span class="p">,</span>
+<a id="line-187" name="line-187"></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">message</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">icon_name</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">PolkitDetails</span><span class="w"> </span><span class="o">*</span><span class="n">details</span><span class="p">,</span>
+<a id="line-190" name="line-190"></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">cookie</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">identities</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">cancellable</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-194" name="line-194"></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-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">PolkitMateListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">POLKIT_MATE_LISTENER</span><span class="w"> </span><span class="p">(</span><span class="n">agent_listener</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">PolkitMateAuthenticator</span><span class="w"> </span><span class="o">*</span><span class="n">authenticator</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">AuthData</span><span class="w"> </span><span class="o">*</span><span class="n">data</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">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_task_new</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">listener</span><span class="p">),</span>
+<a id="line-202" name="line-202"></a><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">callback</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_task_set_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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">authenticator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">polkit_mate_authenticator_new</span><span class="w"> </span><span class="p">(</span><span class="n">action_id</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">message</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">icon_name</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">details</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">cookie</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">identities</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">authenticator</span><span class="w"> </span><span class="o">==</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="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_task_return_new_error</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">POLKIT_ERROR</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">POLKIT_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Error creating authentication object&quot;</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">task</span><span class="p">);</span>
+<a id="line-221" name="line-221"></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-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">auth_data_new</span><span class="w"> </span><span class="p">(</span><span class="n">listener</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</span><span class="p">,</span><span class="w"> </span><span class="n">task</span><span class="p">,</span><span class="w"> </span><span class="n">cancellable</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;completed&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">authenticator_completed</span><span class="p">),</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">data</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">if</span><span class="w"> </span><span class="p">(</span><span class="n">cancellable</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">cancel_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">cancellable</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;cancelled&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">cancelled_cb</span><span class="p">),</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">listener</span><span class="o">-&gt;</span><span class="n">authenticators</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">listener</span><span class="o">-&gt;</span><span class="n">authenticators</span><span class="p">,</span><span class="w"> </span><span class="n">authenticator</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">maybe_initiate_next_authenticator</span><span class="w"> </span><span class="p">(</span><span class="n">listener</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="nl">out</span><span class="p">:</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><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="n">gboolean</span>
+<a id="line-248" name="line-248"></a><span class="nf">polkit_mate_listener_initiate_authentication_finish</span><span class="w"> </span><span class="p">(</span><span class="n">PolkitAgentListener</span><span class="w"> </span><span class="o">*</span><span class="n">listener</span><span class="p">,</span>
+<a id="line-249" name="line-249"></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-250" name="line-250"></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-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">GTask</span><span class="w"> </span><span class="o">*</span><span class="n">task</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_TASK</span><span class="w"> </span><span class="p">(</span><span class="n">res</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">g_warn_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">g_task_get_source_tag</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">polkit_mate_listener_initiate_authentication</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_task_propagate_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">task</span><span class="p">,</span><span class="w"> </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><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></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-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/index.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/index.html
new file mode 100644
index 0000000..35f12cd
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/index.html
@@ -0,0 +1,252 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit</h1>
+ <div id="filters">
+
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="error"disabled/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>31</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>4</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>1</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>1</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="shadowVariable" name="shadowVariable" checked></td><td>1</td><td>shadowVariable</td></tr>
+ <tr><td></td><td>40</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="7.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: 106/592 (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">src/main.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="0.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libayatana-appindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libappindicator/app-indicator.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="shadowVariable sev_style issue"><td><a href="0.html#line-226">226</a></td><td>shadowVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Local variable &apos;authority&apos; shadows outer variable</td></tr>
+ <tr class="constParameterCallback sev_style issue"><td><a href="0.html#line-316">316</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;signal_name&apos; can be declared as pointer to const. However it seems that &apos;signal_cb&apos; is a callback function, if &apos;signal_name&apos; is declared with const you might also need to cast function pointer(s).</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">src/polkitmateauthenticationdialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;fcntl.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="2.html#line-99">99</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;indices&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">src/polkitmateauthenticationdialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">src/polkitmateauthenticator.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="4.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;pwd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkit/polkit.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="4.html#line-512">512</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;authenticator&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">src/polkitmateauthenticator.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">src/polkitmatelistener.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="6.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">src/polkitmatelistener.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;polkitagent/polkitagent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/stats.html b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/stats.html
new file mode 100644
index 0000000..5c5881a
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/stats.html
@@ -0,0 +1,178 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-polkit</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-polkit: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for style severity, total findings: 4</span><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 35</span><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> src/polkitmateauthenticationdialog.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="4.html"> src/polkitmateauthenticator.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="0.html"> src/main.c</a><br>
+&#160;&#160;&#160;3&#160;&#160;<a href="6.html"> src/polkitmatelistener.c</a><br>
+&#160;&#160;&#160;2&#160;&#160;<a href="3.html"> src/polkitmateauthenticationdialog.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="1.html"> src/polkitmatelistener.h</a><br>
+&#160;&#160;&#160;1&#160;&#160;<a href="5.html"> src/polkitmateauthenticator.h</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/style.css b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_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;
+}
diff --git a/CNAME b/CNAME
new file mode 100644
index 0000000..49eef4f
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+mate-polkit.mate-desktop.dev
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..e7a2170
--- /dev/null
+++ b/index.html
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML>
+<html lang="en">
+ <head>
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
+ <title>mate-polkit Code Analyzer results</title>
+</head>
+<body>
+<h1>
+ <a href="https://github.com/mate-desktop">mate-desktop</a>/<a href="https://github.com/mate-desktop/mate-polkit">mate-polkit</a> Static analyzer results
+</h1>
+ <a href="https://github.com/mate-desktop/mate-polkit" title="Github"><i class="fa fa-github fa-2x"></i>GitHub</a>
+ <a href="https://app.travis-ci.com/mate-desktop/mate-polkit/builds/269113945" title="Travis CI"><img src="https://travis-ci.org/mate-desktop/mate-polkit.svg?branch=master" alt="Build Status" /></a>
+<hr/>
+Commit: <a href="https://github.com/mate-desktop/mate-polkit/commit/c2df8de7c7b144189fc895639fc21261cf4c5d7d">c2df8de7c7b144189fc895639fc21261cf4c5d7d</a><br/>
+Compare: <a href="https://github.com/mate-desktop/mate-polkit/compare/ad6d40200d0a...c2df8de7c7b1">ad6d40200d0a...c2df8de7c7b1</a><br/>
+Branch: <a href="https://github.com/mate-desktop/mate-polkit/tree/master">master</a><br/>
+Time: 2024-02-26 10:58:07+00:00<br/>
+Messages:<br/>
+<pre>
+release 1.28.1
+</pre>
+<hr/>
+<ul>
+<li><a href="2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master">2024-02-26-105807-9780-cppcheck@c2df8de7c7b1_master</a></li>
+<li><a href=2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1>2024-02-26-105642-9744-cppcheck@c2df8de7c7b1_v1.28.1</a></li>
+<li><a href=2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master>2024-02-26-105052-9928-cppcheck@ad6d40200d0a_master</a></li>
+<li><a href=2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson>2024-02-24-205454-0706-cppcheck@1d41ea003763_shiti-meson</a></li>
+<li><a href=2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master>2024-02-15-173245-9368-cppcheck@aacfb22a55ce_master</a></li>
+<li><a href=2024-02-15-172653-3023-cppcheck@256d08c4a418_travis>2024-02-15-172653-3023-cppcheck@256d08c4a418_travis</a></li>
+<li><a href=2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master>2023-09-03-043043-5605-cppcheck@6fbf55c280e5_master</a></li>
+<li><a href=2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson>2023-09-03-024610-6129-cppcheck@abf957c6a5e9_fix-meson</a></li>
+<li><a href=2023-09-02-184611-1622-cppcheck@4b078a16e961_master>2023-09-02-184611-1622-cppcheck@4b078a16e961_master</a></li>
+<li><a href=2023-08-31-195451-3891-cppcheck@015207383e78_master>2023-08-31-195451-3891-cppcheck@015207383e78_master</a></li>
+<li><a href=2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file>2023-08-30-132313-6863-cppcheck@3799abd873ae_desktop-file</a></li>
+<li><a href=2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1>2023-08-30-131932-1666-cppcheck@5851bb1e1c2c_v1.27.1</a></li>
+<li><a href=2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master>2023-08-30-131815-8382-cppcheck@5851bb1e1c2c_master</a></li>
+<li><a href=2023-05-25-161821-0349-cppcheck@a3f91214bc68_master>2023-05-25-161821-0349-cppcheck@a3f91214bc68_master</a></li>
+<li><a href=2023-05-23-093151-5604-cppcheck@13874beaa074_meson>2023-05-23-093151-5604-cppcheck@13874beaa074_meson</a></li>
+<li><a href=2023-02-10-194918-4414-cppcheck@65a6c367e28e_master>2023-02-10-194918-4414-cppcheck@65a6c367e28e_master</a></li>
+<li><a href=2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2>2023-02-10-194140-4152-cppcheck@484831434984_ayatana-indicators2</a></li>
+<li><a href=2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2>2023-01-31-064338-0666-cppcheck@121a9aba9d75_ayatana-indicators2</a></li>
+<li><a href=2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2>2023-01-31-063753-4832-cppcheck@e8a458a75274_ayatana-indicators2</a></li>
+<li><a href=2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master>2022-11-11-213722-0509-cppcheck@f6c2c37d31d3_master</a></li>
+</ul>
+</body>
+</html>