<p>This commit moves all access to TMSourceFiles/the tagmanager API into a dedicated file <code>tm_control.c</code>. Calls from the workbench plugin to the tag-manager API may now only appear in this file. Also all calls are synced using a idle-queue managed in <code>idle_queue.c</code> (using <code>plugin_idle_add()</code>). This way the file lists in the workbench projects is completely de-coupled of any TMSourceFile related data/references. <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #866.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="445837374" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany-plugins/issues/866" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/866/hovercard" href="https://github.com/geany/geany-plugins/issues/866">#866</a>.</p>
<p>(Calls to the tag-manager API were synced before also. But the implementation was not very clean and therefore contained errors/code where the tag-manager API was called directly - which could lead to crashes)</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/867'>https://github.com/geany/geany-plugins/pull/867</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>workbench: revised tag-manager control/usage</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-0">workbench/src/Makefile.am</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-1">workbench/src/idle_queue.c</a>
    (134)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-2">workbench/src/idle_queue.h</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-3">workbench/src/plugin_main.c</a>
    (31)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-4">workbench/src/tm_control.c</a>
    (243)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-5">workbench/src/tm_control.h</a>
    (31)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-6">workbench/src/wb_project.c</a>
    (346)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/867/files#diff-7">workbench/src/wb_project.h</a>
    (9)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/867.patch'>https://github.com/geany/geany-plugins/pull/867.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/867.diff'>https://github.com/geany/geany-plugins/pull/867.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/867?email_source=notifications&email_token=AAIOWJ7R2X2RKNO3BAQ723DPWGBPRA5CNFSM4HN45EW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUS75RA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY4VLFWC2O3UT3V3KTPWGBPRANCNFSM4HN45EWQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYIPATXRNWDEWMLCETPWGBPRA5CNFSM4HN45EW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUS75RA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/867?email_source=notifications\u0026email_token=AAIOWJ7R2X2RKNO3BAQ723DPWGBPRA5CNFSM4HN45EW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUS75RA",
"url": "https://github.com/geany/geany-plugins/pull/867?email_source=notifications\u0026email_token=AAIOWJ7R2X2RKNO3BAQ723DPWGBPRA5CNFSM4HN45EW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUS75RA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>