GSettings and you, II

2010-04-23 Thread Matthias Clasen
I have just released GLib 2.25.2 and GConf 2.31.2. These release contain the accumulated bug-fixes that came out of the early adoption after my .1 releases earlier this week. Overall, things should be pretty solid now, so if you hesitated to jump last time, now is an even better time. Some

Re: GSettings and you

2010-04-23 Thread Rodrigo Moya
context (similar to what I explained for the keyfile backend), via g_settings_backend_setup (blah, backend) Or you can make your backend implement the gsettings-backend extension point (and possibly build it as a GIO module and install it in /usr/lib/gio/modules). If you do that, GSettings

Re: GSettings and you, II

2010-04-23 Thread Yavor Doganov
В Fri, 23 Apr 2010 06:52:07 -0400, Matthias Clasen написа: - There is now an AM_GSETTINGS autoconf macro similar to AM_GCONF_SOURCE_2 This is a good opportunity to stop abusing Automake's macro namespace, which unfortunately many GNOME-related macros have been doing for years.

Re: GSettings and you, II

2010-04-23 Thread Bastien Nocera
On Fri, 2010-04-23 at 11:54 +, Yavor Doganov wrote: В Fri, 23 Apr 2010 06:52:07 -0400, Matthias Clasen написа: - There is now an AM_GSETTINGS autoconf macro similar to AM_GCONF_SOURCE_2 This is a good opportunity to stop abusing Automake's macro namespace, which unfortunately many

Re: GSettings and you, II

2010-04-23 Thread Yavor Doganov
В Fri, 23 Apr 2010 13:23:56 +0100, Bastien Nocera написа: This is a good opportunity to stop abusing Automake's macro namespace, What do you recommend replacing it with? GLIB_GSETTINGS seems natural, as the glib package is the owner of the macro. (You can use AU_DEFUN to facilitate

Re: GSettings and you, II

2010-04-23 Thread Bastien Nocera
On Fri, 2010-04-23 at 06:52 -0400, Matthias Clasen wrote: I have just released GLib 2.25.2 and GConf 2.31.2. These release contain the accumulated bug-fixes that came out of the early adoption after my .1 releases earlier this week. Overall, things should be pretty solid now, so if you

Re: GSettings and you, II

2010-04-23 Thread Behdad Esfahbod
On 04/23/2010 07:54 AM, Yavor Doganov wrote: В Fri, 23 Apr 2010 06:52:07 -0400, Matthias Clasen написа: - There is now an AM_GSETTINGS autoconf macro similar to AM_GCONF_SOURCE_2 This is a good opportunity to stop abusing Automake's macro namespace, which unfortunately many GNOME-related

Re: GSettings and you, II

2010-04-23 Thread Javier Jardón
2010/4/23 Yavor Doganov ya...@gnu.org: В Fri, 23 Apr 2010 13:23:56 +0100, Bastien Nocera написа: This is a good opportunity to stop abusing Automake's macro namespace, What do you recommend replacing it with? GLIB_GSETTINGS seems natural, as the glib package is the owner of the macro.  

Re: GSettings and you

2010-04-22 Thread Rodrigo Moya
On Tue, 2010-04-20 at 11:04 -0400, Matthias Clasen wrote: On Tue, Apr 20, 2010 at 10:50 AM, Xavier Claessens xclae...@gmail.com wrote: Nice. Just a question: where can I find the code for the Several fully functional backends? Especially the gconf one. The gconf backend is included in

Re: GSettings and you

2010-04-22 Thread Matthias Clasen
g_settings_backend_setup (blah, backend) Or you can make your backend implement the gsettings-backend extension point (and possibly build it as a GIO module and install it in /usr/lib/gio/modules). If you do that, GSettings will consider your backend like any other when looking for the default. And you can

Re: GSettings and you

2010-04-21 Thread Richard Hughes
On 20 April 2010 15:45, Bastien Nocera had...@hadess.net wrote: GSettings. Here are a couple of notes (in addition to some questions from Richard who was porting gnome-color-manager): Some more questions: 1. The Gio /usr/lib/pkgconfig/gio-2.0.pc file has this:

Re: GSettings and you

2010-04-21 Thread Behdad Esfahbod
On 04/21/2010 04:26 AM, Richard Hughes wrote: 1. The Gio /usr/lib/pkgconfig/gio-2.0.pc file has this: giomoduledir=${libdir}/gio/modules gsettingsschemadir=${prefix}/share/glib-2.0/schemas And yet when you do: pkg-config --variable gsettingsschemadir gio-2.0 you get:

Re: GSettings and you

2010-04-21 Thread Richard Hughes
On 21 April 2010 09:42, Behdad Esfahbod beh...@behdad.org wrote: How does it break make distcheck though?  I can only imagine it breaking make install with non-root. make distcheck ... test -z /usr/share/glib-2.0/schemas || /bin/mkdir -p /usr/share/glib-2.0/schemas /usr/bin/install -c -m 644

Re: GSettings and you

2010-04-21 Thread Behdad Esfahbod
On 04/21/2010 05:10 AM, Richard Hughes wrote: On 21 April 2010 09:42, Behdad Esfahbod beh...@behdad.org wrote: How does it break make distcheck though? I can only imagine it breaking make install with non-root. make distcheck ... test -z /usr/share/glib-2.0/schemas || /bin/mkdir -p

Re: GSettings and you

2010-04-21 Thread Richard Hughes
On 21 April 2010 09:26, Richard Hughes hughsi...@gmail.com wrote: Although we obviously need a cleaner solution than that. I've just done: diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -170,8 +170,6 @@ fi AC_PATH_PROG(GCONFTOOL, gconftool-2)

Re: GSettings and you

2010-04-21 Thread Richard Hughes
On 21 April 2010 09:26, Richard Hughes hughsi...@gmail.com wrote: On 20 April 2010 15:45, Bastien Nocera had...@hadess.net wrote: GSettings. Here are a couple of notes (in addition to some questions from Richard who was porting gnome-color-manager): Some more questions: For gnome-packagekit

Re: GSettings and you

2010-04-21 Thread Bastien Nocera
On Wed, 2010-04-21 at 10:48 +0100, Richard Hughes wrote: On 21 April 2010 09:26, Richard Hughes hughsi...@gmail.com wrote: Although we obviously need a cleaner solution than that. I've just done: diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -170,8

Re: GSettings and you

2010-04-21 Thread Matthias Clasen
On Wed, Apr 21, 2010 at 4:26 AM, Richard Hughes hughsi...@gmail.com wrote: On 20 April 2010 15:45, Bastien Nocera had...@hadess.net wrote: GSettings. Here are a couple of notes (in addition to some questions from Richard who was porting gnome-color-manager): Some more questions: 1. The Gio

Re: GSettings and you

2010-04-21 Thread Shaun McCance
On Wed, 2010-04-21 at 09:20 -0400, Matthias Clasen wrote: On Wed, Apr 21, 2010 at 4:26 AM, Richard Hughes hughsi...@gmail.com wrote: On 20 April 2010 15:45, Bastien Nocera had...@hadess.net wrote: GSettings. Here are a couple of notes (in addition to some questions from Richard who was

Re: GSettings and you

2010-04-21 Thread Bastien Nocera
On Wed, 2010-04-21 at 10:23 -0500, Shaun McCance wrote: On Wed, 2010-04-21 at 09:20 -0400, Matthias Clasen wrote: On Wed, Apr 21, 2010 at 4:26 AM, Richard Hughes hughsi...@gmail.com wrote: On 20 April 2010 15:45, Bastien Nocera had...@hadess.net wrote: GSettings. Here are a couple of

Re: GSettings and you

2010-04-21 Thread Shaun McCance
On Tue, 2010-04-20 at 11:04 -0400, Matthias Clasen wrote: On Tue, Apr 20, 2010 at 10:50 AM, Xavier Claessens xclae...@gmail.com wrote: Nice. Just a question: where can I find the code for the Several fully functional backends? Especially the gconf one. The gconf backend is included in

Re: GSettings and you

2010-04-21 Thread Matthias Clasen
On Wed, Apr 21, 2010 at 6:04 PM, Shaun McCance How do I use the keyfile backend? 'export GSETTINGS_BACKEND=keyfile' gives me this: Can't find GSettings backend 'keyfile' given in GSETTINGS_BACKEND environment variable I don't have anything under $libdir/gio/modules. Did I miss something?

Re: GSettings and you

2010-04-21 Thread Sandy Armstrong
On Wed, Apr 21, 2010 at 3:24 PM, Matthias Clasen matthias.cla...@gmail.com wrote: On Wed, Apr 21, 2010 at 6:04 PM, Shaun McCance How do I use the keyfile backend? 'export GSETTINGS_BACKEND=keyfile' gives me this: Can't find GSettings backend 'keyfile' given in GSETTINGS_BACKEND environment

Re: GSettings and you

2010-04-21 Thread Bastien Nocera
On Wed, 2010-04-21 at 15:31 -0700, Sandy Armstrong wrote: On Wed, Apr 21, 2010 at 3:24 PM, Matthias Clasen matthias.cla...@gmail.com wrote: On Wed, Apr 21, 2010 at 6:04 PM, Shaun McCance How do I use the keyfile backend? 'export GSETTINGS_BACKEND=keyfile' gives me this: Can't find

Re: GSettings and you

2010-04-21 Thread Shaun McCance
On Wed, 2010-04-21 at 18:24 -0400, Matthias Clasen wrote: On Wed, Apr 21, 2010 at 6:04 PM, Shaun McCance How do I use the keyfile backend? 'export GSETTINGS_BACKEND=keyfile' gives me this: Can't find GSettings backend 'keyfile' given in GSETTINGS_BACKEND environment variable I

Re: GSettings and you

2010-04-21 Thread Matthias Clasen
On Wed, Apr 21, 2010 at 7:11 PM, Shaun McCance sha...@gnome.org wrote: Is this the sane thing to do then? if (g_getenv (GSETTINGS_BACKEND))  settings = g_settings_new (org.gnome.yelp); else {  g_settings_backend_setup_keyfile (blah, filename);  settings = g_settings_new_with_context

GSettings and you

2010-04-20 Thread Matthias Clasen
Hey, with the GLib 2.25.1 and GConf 2.31.1 releases that I've made yesterday, the results of last weeks GSettings hackfest are now available. Some pieces of the puzzle are still missing: - Dconf is still being worked on - Support for lists of settings (like a lists of accounts, or

Re: GSettings and you

2010-04-20 Thread Bastien Nocera
On Tue, 2010-04-20 at 09:00 -0400, Matthias Clasen wrote: Hey, with the GLib 2.25.1 and GConf 2.31.1 releases that I've made yesterday, the results of last weeks GSettings hackfest are now available. Some pieces of the puzzle are still missing: - Dconf is still being worked on -

Re: GSettings and you

2010-04-20 Thread Xavier Claessens
Nice. Just a question: where can I find the code for the Several fully functional backends? Especially the gconf one. Thanks, Xavier Claessens. Le 20/04/10 15:30, Matthias Clasen a écrit : Hey, with the GLib 2.25.1 and GConf 2.31.1 releases that I've made yesterday, the results of last weeks

Re: GSettings and you

2010-04-20 Thread Matthias Clasen
On Tue, Apr 20, 2010 at 10:45 AM, Bastien Nocera had...@hadess.net wrote: - http://library.gnome.org/devel/gio/2.25/ch23s06.html mentions gsettings-schema-convert but not what flags should be used, or examples of what the output would look like, or what it's supposed to look like. Ok, I'll

Re: GSettings and you

2010-04-20 Thread Matthias Clasen
On Tue, Apr 20, 2010 at 10:50 AM, Xavier Claessens xclae...@gmail.com wrote: Nice. Just a question: where can I find the code for the Several fully functional backends? Especially the gconf one. The gconf backend is included in GConf 2.31.1. GLib 2.25.1 includes a memory backend, a keyfile

Re: GSettings and you

2010-04-20 Thread Bastien Nocera
On Tue, 2010-04-20 at 11:03 -0400, Matthias Clasen wrote: On Tue, Apr 20, 2010 at 10:45 AM, Bastien Nocera had...@hadess.net wrote: - http://library.gnome.org/devel/gio/2.25/ch23s06.html mentions gsettings-schema-convert but not what flags should be used, or examples of what the output

Re: GSettings and you

2010-04-20 Thread Luca Ferretti
Il giorno mar, 20/04/2010 alle 15.45 +0100, Bastien Nocera ha scritto: - Should the summary and descriptions in the schemas follow the same rules as GConf wrt periods at the end of sentences? About this topic, * while converting from GConf to GSettings, could be good check labels

Re: GSettings and you

2010-04-20 Thread Jody Goldberg
On Tue, Apr 20, 2010 at 11:04:22AM -0400, Matthias Clasen wrote: On Tue, Apr 20, 2010 at 10:50 AM, Xavier Claessens xclae...@gmail.com wrote: Nice. Just a question: where can I find the code for the Several fully functional backends? Especially the gconf one. The gconf backend is

Re: GSettings and you

2010-04-20 Thread Sam Thursfield
On Tue, Apr 20, 2010 at 10:52 PM, Jody Goldberg j...@gnome.org wrote: On Tue, Apr 20, 2010 at 11:04:22AM -0400, Matthias Clasen wrote: On Tue, Apr 20, 2010 at 10:50 AM, Xavier Claessens xclae...@gmail.com wrote: Nice. Just a question: where can I find the code for the Several fully