RE: gconf_entry_get_schema_name() returns NULL



Hi Havoc,

>Did you associate the schema name with the key? (Normally happens when
>you install schema files, because of <applyto> elements in .schemas)
>

To be more specific about the problem, I tried to change the keybindings
via keybinding-properties capplet.(say I change the value for
"/apps/metacity/window_keybindings/move_to_workspace_3") 

After changing the value the same got reflected in the gconf. Now when I
tried to redisplay the tree in keybinding capplet(without restarting the
capplet), the function uses the following step to get the schemas for
the key:

==========
 if (gconf_entry_get_schema_name (entry))
   schema = gconf_client_get_schema (client, gconf_entry_get_schema_name
(entry), &error);
==========

When it comes to gconf_entry_get_schema_name() it returns NULL for the
modified key (for
/apps/metacity/window_keybindings/move_to_workspace_3). Whereas it
should return
"/schemas/apps/metacity/window_keybindings/move_to_workspace_3". 

But when I close the application and restart it, the same logic works
fine.

Pls. let me know what could be the issue.

Thanks,
Pasu



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