mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
GSettings - define old prefix and check settings for the presence of both prefixes while normalizing
This commit is contained in:
parent
a203c5b2d5
commit
f21c7b6e90
@ -38,6 +38,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
#define GSET_SCHEMA_PREFIX "org.gnucash.GnuCash"
|
||||
#define GSET_SCHEMA_OLD_PREFIX "org.gnucash"
|
||||
#define CLIENT_TAG "%s-%s-client"
|
||||
#define NOTIFY_TAG "%s-%s-notify_id"
|
||||
|
||||
@ -143,7 +144,8 @@ gnc_gsettings_normalize_schema_name (const gchar *name)
|
||||
/* Need to return a newly allocated string */
|
||||
return g_strdup(GSET_SCHEMA_PREFIX);
|
||||
}
|
||||
if (g_str_has_prefix (name, GSET_SCHEMA_PREFIX))
|
||||
if (g_str_has_prefix (name, GSET_SCHEMA_PREFIX) ||
|
||||
(g_str_has_prefix (name, GSET_SCHEMA_OLD_PREFIX)))
|
||||
{
|
||||
/* Need to return a newly allocated string */
|
||||
return g_strdup(name);
|
||||
|
Loading…
Reference in New Issue
Block a user