[gtk+] file chooser: give GSettings schema a path



commit dc8b67de9213c1d652603bcacb569b208e897625
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Jan 20 21:24:28 2013 -0500

    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 a1b2aa3..71309fd 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 99c356e..d7d8705 100644
--- a/gtk/org.gtk.Settings.FileChooser.gschema.xml
+++ b/gtk/org.gtk.Settings.FileChooser.gschema.xml
@@ -33,7 +33,7 @@
     <value nick='descending' value='1'/>
   </enum>
 
-  <schema id='org.gtk.Settings.FileChooser'>
+  <schema id='org.gtk.Settings.FileChooser' path='/org/gtk/settings/file-chooser/'>
     <key name='last-folder-uri' type='s'>
       <default>""</default>
     </key>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]