Re: Proposal to enable accessibility by default for GNOME development releases



On Mon, 2006-10-16 at 14:20 -0400, Willie Walker wrote:
> I'm not sure I understand the question, but you can manually get and set
> the key via:

Maybe i'm just stupid, but it seems to me that you first set a_t_support
depending on the version, and then run:

+  a_t_value = gconf_client_get (gconf_client, ACCESSIBILITY_KEY, NULL);
+  if (a_t_value)
+    a_t_support = gconf_value_get_bool (a_t_value);

Which, if the key is unset by the user, will always return the schema
default value for the key, thereby always overwriting the previous
version.

Shouldn't you be using gconf_client_get_without_default() here?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a maverick crooked shaman from the 'hood. She's a ditzy hip-hop 
journalist with the soul of a mighty warrior. They fight crime! 




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