[Github-comments] [geany/geany] Modify/Extend Stash Settings API (PR #3000)

xiota notifications at xxxxx
Mon Nov 15 07:29:36 UTC 2021


Example, looking up a Geany group and pref:
```C++
  StashGroup *group = stash_group_get_group("VTE", nullptr);
  StashPref *pref =
      stash_group_get_pref_by_name(group, "send_selection_unsafe");

  if (group && pref) {
    msgwin_status_add("%s.%s = %d", group->name, pref->key_name,
                      *(gboolean *)pref->setting);
  }
```
Output:
```
VTE.send_selection_unsafe = 0
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3000#issuecomment-968608126
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211114/628d9bb7/attachment.htm>


More information about the Github-comments mailing list