gdm r6090 - in trunk: . gui/simple-greeter



Author: mccann
Date: Wed Apr  2 20:35:04 2008
New Revision: 6090
URL: http://svn.gnome.org/viewvc/gdm?rev=6090&view=rev

Log:
2008-04-02  William Jon McCann  <jmccann redhat com>

	* gui/simple-greeter/greeter-main.c: (at_set_gtk_modules),
	(load_a11y):
	Enable a11y unless it is explicitly turned off.



Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/greeter-main.c

Modified: trunk/gui/simple-greeter/greeter-main.c
==============================================================================
--- trunk/gui/simple-greeter/greeter-main.c	(original)
+++ trunk/gui/simple-greeter/greeter-main.c	Wed Apr  2 20:35:04 2008
@@ -178,9 +178,9 @@
         if ((old = g_getenv ("GTK_MODULES")) != NULL) {
                 modules = g_strsplit (old, ":", -1);
                 for (n = 0; modules[n]; n++) {
-                        if (!strcmp (modules[n], "gail")) {
+                        if (strcmp (modules[n], "gail") == 0) {
                                 found_gail = TRUE;
-                        } else if (!strcmp (modules[n], "atk-bridge")) {
+                        } else if (strcmp (modules[n], "atk-bridge") == 0) {
                                 found_atk_bridge = TRUE;
                         }
 
@@ -228,7 +228,15 @@
         if (env_a_t_support) {
                 a_t_support = atoi (env_a_t_support);
         } else {
-                a_t_support = gconf_client_get_bool (gconf_client, ACCESSIBILITY_KEY, NULL);
+                GConfValue *val;
+
+                a_t_support = TRUE;
+
+                val = gconf_client_get_without_default (gconf_client, ACCESSIBILITY_KEY, NULL);
+                if (val != NULL) {
+                        a_t_support = gconf_value_get_bool (val);
+                        gconf_value_free (val);
+                }
         }
 
         if (a_t_support) {



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