summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c
index 6094a0454..198fded6a 100644
--- a/gtk/src/settings.c
+++ b/gtk/src/settings.c
@@ -143,6 +143,14 @@ ghb_settings_get_double(const GValue *settings, const gchar *key)
return ghb_value_double(value);
}
+const gchar*
+ghb_settings_get_const_string(const GValue *settings, const gchar *key)
+{
+ const GValue* value;
+ value = ghb_settings_get_value(settings, key);
+ return g_value_get_string(value);
+}
+
gchar*
ghb_settings_get_string(const GValue *settings, const gchar *key)
{