Force push because got git branches mixed up. get_stash_groups() is to make testing easier without recompiling Geany. Probaby won't be in the final PR. Functions to access

GPtrArray *get_stash_groups();  // To make testing easier.  Will probably be removed in final PR.

StashGroup *stash_group_get_group(const gchar *group_name, const gchar *key_name);

StashPref *stash_group_get_pref_by_name(StashGroup *group, const gchar *key_name);

Example - list all groups and names:

  GPtrArray *test = get_stash_groups();

  gpointer item;
  guint i;
  foreach_ptr_array(item, i, test) {
    if (item) {
      StashGroup *group = (StashGroup *)item;
      msgwin_status_add("group = %s", group->name);
    }
  }

Output:

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

Notably, in keyfile.c, 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?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.