Add method clutter_disable_accessibility ()

https://bugzilla.gnome.org/show_bug.cgi?id=691468
This commit is contained in:
Alejandro Piñeiro
2013-03-01 10:58:54 +01:00
parent 36e25374cc
commit 9618f37b1d
2 changed files with 26 additions and 0 deletions

View File

@ -506,6 +506,29 @@ clutter_get_accessibility_enabled (void)
return cally_get_cally_initialized ();
}
/**
* clutter_disable_accessibility:
*
* Disable loading the accessibility support. It has the same effect
* as setting the environment variable
* CLUTTER_DISABLE_ACCESSIBILITY. For the same reason, this method
* should be called before clutter_init().
*
* Since: 1.14
*/
void
clutter_disable_accessibility (void)
{
if (clutter_is_initialized)
{
g_warning ("clutter_disable_accessibility() can only be called before "
"initializing Clutter.");
return;
}
clutter_enable_accessibility = FALSE;
}
/**
* clutter_redraw:
*