Re: help with gconf basics
- From: Steven Jenkins <steven jenkins ieee org>
- To: gconf-list gnome org
- Subject: Re: help with gconf basics
- Date: Thu, 26 Dec 2002 17:47:15 -0800
Havoc Pennington wrote:
On Thu, Dec 26, 2002 at 01:53:32PM -0800, Steven Jenkins wrote:
> /apps/tidal/adc/device
> /apps/tidal/adc/device
You can't use the same key to store the schema, and to store your
config value. The schema is a separate object.
Ah. I knew it had to be a blind spot on my part. I remember being
confused about the example, in which the schema key .../fooandbar was
applied to both .../foo and .../bar. I was looking at the leaf end and
didn't notice the leading /schemas. Now it makes more sense.
>When I run it on an invalid key, it dumps core:
>$ ./test /apps/tidal/adc/devicex
>./cmds: line 1: 11268 Segmentation fault ./test
/apps/tidal/adc/devicex
>
Because no error occurred, but you are trying to use "err->message"
"No value set" returns NULL, but is not an error.
OK. *Seems* like an error, but.... :-)
Re: GConfClient vs. GConfEngine, GConfClient is just higher-level and
smarter. In GConf 2, GConfClient has no GTK dependency.
The smarts probably don't matter so much if you aren't doing change
notification, though GConfClient may still give you faster startup
time, if you add_directory with PRELOAD_ONELEVEL or PRELOAD_RECURSIVE
to minimize round trips.
I'll keep that in mind. For what I'm doing, it probably doesn't matter.
Thanks for the quick reply.
Steve
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]