diff options
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r-- | gtk/src/settings.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 7d6c6bbba..31678de7c 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -1210,6 +1210,20 @@ ghb_prefs_save(GHashTable *settings) } } +void +ghb_pref_save(GHashTable *settings, const gchar *key) +{ + const gchar *value; + + if (prefs_initializing) return; + value = ghb_settings_get_string(settings, key); + if (value != NULL) + { + g_key_file_set_value(prefsKeyFile, "Preferences", key, value); + store_key_file(prefsKeyFile, "preferences"); + } +} + #if 0 static void dump_key_file(GKeyFile *keyFile, const gchar *section) |