RE: Warning in adding GConf schemas

"Ramprasad" <[email protected]> Fri, 14 Mar 2008 18:16:54 +0530
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <[email protected]>
I had tried those too.

 

Here's the outcome of the steps -

 

[root@ramprasad schemas]# gconftool-2 --get /schemas/apps/clock_applet/prefs/hour_format

Type: int

List Type: *invalid*

Car Type: *invalid*

Cdr Type: *invalid*

Default Value: 12

Owner: clock-applet

Short Desc: Hour format

Long Desc:

       The use of this key was deprecated in GNOME 2.6 in favour of the

       'format' key. The schema is retained for compatibility with older

       versions.

 

[root@ramprasad schemas]# gconftool-2 --recursive-list /schemas/apps/clock_applet

 /schemas/apps/clock_applet/prefs:

  show_seconds = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  show_tooltip = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  config_tool = Schema (type: `string' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  gmt_time = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  format = Schema (type: `string' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `en_US')

  unix_time = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  hour_format = Schema (type: `int' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `en_US')

  custom_format = Schema (type: `string' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  internet_time = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

  show_date = Schema (type: `bool' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')

 

[root@ramprasad schemas]# gconftool-2 --get-schema-name /apps/clock_applet/prefs/hour_format

No schema known for `/apps/clock_applet/prefs/hour_format'

[root@ramprasad schemas]#

 

Thanks,

Ramprasad B

 

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joerg Barfurth
Sent: Friday, March 14, 2008 6:12 PM
To: Ramprasad
Cc: [email protected]
Subject: Re: Warning in adding GConf schemas

 

Ramprasad schrieb:

 

> I need a help regarding adding new schemas to Gconf.

> 

 

> I installed *clock.schemas* and still I get an following warning 

> highlighted in red color

> 

 

> [root@ramprasad sbin]# gconftool-2 --get-schema-name 

> /schemas/apps/clock_applet/prefs/hour_format

> 

> *No schema known for `/schemas/apps/clock_applet/prefs/hour_format'*

> 

 

Well, you haven't installed a schema for the schema. Nor should you 

necessarily have wanted to.

 

To inspect the schema you have installed, you can use something like

   gconftool-2 -get /schemas/apps/clock_applet/prefs/hour_format

or

   gconftool-2 --recursive-list /schemas/apps/clock_applet

 

 

But to check whether your schema has properly been applied as schema, 

you need to check that key it targets properly points to the schema.

 

Try (I'm guessing the target key from the schema name):

  gconftool-2 --get-schema-name /apps/clock_applet/prefs/hour_format

 

HTH

 

- Jörg

_______________________________________________
gconf-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gconf-list