From dc8b67de9213c1d652603bcacb569b208e897625 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sun, 20 Jan 2013 21:24:28 -0500 Subject: [PATCH] file chooser: give GSettings schema a path The code is always instantiating this schema at a fixed location, so why is it relocatable? Add a path so that it shows up properly in dconf-editor, and from the gsettings commandline tool. https://bugzilla.gnome.org/show_bug.cgi?id=692163 --- gtk/gtkfilechooserdefault.c | 3 +-- gtk/org.gtk.Settings.FileChooser.gschema.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index a1b2aa36b4..71309fd04f 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -6020,8 +6020,7 @@ settings_ensure (GtkFileChooserDefault *impl) if (impl->settings != NULL) return; - impl->settings = g_settings_new_with_path ("org.gtk.Settings.FileChooser", - "/org/gtk/settings/file-chooser/"); + impl->settings = g_settings_new ("org.gtk.Settings.FileChooser"); g_settings_delay (impl->settings); } diff --git a/gtk/org.gtk.Settings.FileChooser.gschema.xml b/gtk/org.gtk.Settings.FileChooser.gschema.xml index 99c356eb7a..d7d87058af 100644 --- a/gtk/org.gtk.Settings.FileChooser.gschema.xml +++ b/gtk/org.gtk.Settings.FileChooser.gschema.xml @@ -33,7 +33,7 @@ - + ""