<p></p>
<p dir="auto">Force push because got git branches mixed up.  <code>get_stash_groups()</code> is to make testing easier without recompiling Geany.  Probaby won't be in the final PR.  Functions to access</p>
<div class="highlight highlight-source-c"><pre>GPtrArray *<span class="pl-en">get_stash_groups</span>();  <span class="pl-c"><span class="pl-c">//</span> To make testing easier.  Will probably be removed in final PR.</span>

StashGroup *<span class="pl-en">stash_group_get_group</span>(<span class="pl-k">const</span> gchar *group_name, <span class="pl-k">const</span> gchar *key_name);

StashPref *<span class="pl-en">stash_group_get_pref_by_name</span>(StashGroup *group, <span class="pl-k">const</span> gchar *key_name);</pre></div>
<p dir="auto">Example - list all groups and names:</p>
<div class="highlight highlight-source-c++"><pre>  GPtrArray *test = get_stash_groups();

  gpointer item;
  guint i;
  <span class="pl-en">foreach_ptr_array</span>(item, i, test) {
    <span class="pl-k">if</span> (item) {
      StashGroup *group = (StashGroup *)item;
      <span class="pl-c1">msgwin_status_add</span>(<span class="pl-s"><span class="pl-pds">"</span>group = %s<span class="pl-pds">"</span></span>, group-><span class="pl-smi">name</span>);
    }
  }</pre></div>
<p dir="auto">Output:</p>
<pre><code>group = geany
group = geany
group = geany
group = geany
group = geany
group = build-menu
group = geany
group = search
group = search
group = search
group = search
group = plugins
group = geany
group = VTE
</code></pre>
<p dir="auto">Notably, in <code>keyfile.c</code>, groups with the same name (geany and search) are created multiple times.  Why?  Is it necessary?  Would it work if the old group with the same name is returned instead of a brand new group?</p>

<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/pull/3000#issuecomment-968607037">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2HTYIBLHMF6TQRCG3UMCY6LANCNFSM5H7EP4HA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJY6COCQ2ETJRP5WYRDUMCY6LA5CNFSM5H7EP4HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHG54KPI.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/pull/3000#issuecomment-968607037",
"url": "https://github.com/geany/geany/pull/3000#issuecomment-968607037",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>