This PR exposes the StashPref struct to the plugin API. They can later by looked up by name with stash_group_get_pref_by_name(). The caller needs to have a pointer to the StashGroup that contains the desired pref, so this isn't currently very useful. But it is needed to further extend stash settings without changing the existing API. (Key comments, override settings, config/session split.)

Example use of the new lookup function:

  StashPref *pref = stash_group_get_pref_by_name(group, "price");
  msgwin_status_add("%s = %f", pref->key_name, *(gdouble *)pref->setting);

You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3008

Commit Summary

File Changes

(3 files)

Patch Links:


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.