Re: desktop schemas review [was: Re: GSettings migration status]


Am Sat, 03 Jul 2010 13:22:16 -0400
schrieb Ryan Lortie <desrt desrt ca>:
> On Sat, 2010-07-03 at 13:37 +0200, Christian Persch wrote:
> > 
> > Finally, I'd like to suggest that gsettings-desktop-schemas install
> > a header file containing #define's for each schema ID, schema, path
> > and all the key names.
> > 
> I tried to discuss this on IRC because I believe it's a good idea.
> It's nice to have the compiler yell at you because you typed
> G_DESKTOP_BACKROUND instead of silently allowing
> "org.gnome.desktop.backround".

Exactly. So let's do this :)

> I was even considering one step farther, defining macros like:
> #define g_desktop_background_settings_new()  -> g_setting_new("...")
> That then leads to g_desktop_background_settings_get_style() macros
> and such.  That might be going too far.

'Too far' would be anything that makes this into a library instead of
just a set of .h files. Anything less goes, as far as I'm concerned.


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