Dietmar Maurer <dietmar ximian com> writes:AFAIK GConf always return NULL for schema_name:
>
> I just tried to find out how I can access the documentation for a key,
> but I found no way to do that. Please can you give me a hint?
>If you get the GConfEntry for a key (gconf_client_get_entry()) then it
contains the schema name; then you call gconf_client_get_schema() on
the schema name.
gconf_engine_get_entry(GConfEngine* conf,
const gchar* key,
const gchar* locale,
gboolean use_schema_default,
GError** err)
{
gboolean is_writable = TRUE;
gboolean is_default = FALSE;
GConfValue *val;
GError *error;
GConfEntry *entry;
error = NULL;
val = gconf_engine_get_full (conf, key, locale, use_schema_default,
&is_default, &is_writable, &error);
if (error != NULL)
{
g_propagate_error (err, error);
return NULL;
}
entry = gconf_entry_new_nocopy (g_strdup (key),
val);
The above sets schema_name to NULL;
entry->is_default = is_default; entry->is_writable = is_writable; return entry; }
- Dietmar