app: save custom gradient across sessions

Desktop / GNOME / GIMP - Ell [yahoo.com] - 29 October 2017 14:19 EDT

Add a framework for saving and restoring internal data objects, in gimp-internal-data.c. Internal data objects are saved in separate files under a new "internal-data" subdirectory of the user's gimp directory. The internal data is saved, restored, and cleared together with the tool options.

Use this to save and restore the custom gradient. In the future, we might add similar writable internal data objects that we'd want to save.

e4440e3fdb app: save custom gradient across sessions
app/core/Makefile.am | 2 +
app/core/gimp-internal-data.c | 311 ++++++++++++++++++++++++++++++++++++++++++
app/core/gimp-internal-data.h | 34 +++++
app/tools/gimp-tools.c | 17 +++
po/POTFILES.in | 1 +
5 files changed, 365 insertions(+)

Upstream: git.gnome.org


  • Share