gnucash unstable: Add infrastructure to handle preference schema migrations and use it to replace one preference

Geert Janssens gjanssens at code.gnucash.org
Mon Dec 11 16:12:51 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/de4d1e98 (commit)
	from  https://github.com/Gnucash/gnucash/commit/9dc66c0b (commit)



commit de4d1e98599544e53e3a6adaaf421a89bb6decb3
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Dec 11 21:56:20 2017 +0100

    Add infrastructure to handle preference schema migrations and use it to replace one preference
    
    The preference schema migration collects all schema mutations that can occur
    when upgrading to a newer gnucash version. The old gconf to gsettings conversion is
    integrated in this system as well. Newer schema mutations will happen based on version
    number upgrades though.
    
    The preference that got replaced is "use-theme-colors". Based on discussion in bug 746163
    (https://bugzilla.gnome.org/show_bug.cgi?id=746163) and gnucash-docs PR#105
    (https://github.com/Gnucash/gnucash-docs/pull/105) this has been replaced with
    "use-gnucash-color-theme" with inverted meaning. The old option is kept around for one or
    two major release cycles to allow seamless conversion.



Summary of changes:
 gnucash/gnome-utils/gnc-tree-model-split-reg.c     |  4 +--
 gnucash/gnome-utils/gnc-tree-model-split-reg.h     |  2 +-
 gnucash/gnome-utils/gnc-tree-view-split-reg.c      |  4 +--
 .../gtkbuilder/dialog-preferences.glade            |  8 ++---
 .../gnome/gschemas/org.gnucash.gschema.xml.in.in   | 14 +++++++--
 gnucash/gnucash-bin.c                              |  5 ++--
 gnucash/register/register-gnome/gnucash-sheet.c    | 10 +++----
 gnucash/register/register-gnome/gnucash-sheetP.h   |  2 +-
 libgnucash/app-utils/gnc-gsettings.c               | 35 +++++++++++++++++-----
 libgnucash/app-utils/gnc-gsettings.h               | 12 +++++---
 libgnucash/core-utils/gnc-prefs.h                  |  4 ++-
 11 files changed, 67 insertions(+), 33 deletions(-)



More information about the gnucash-patches mailing list