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 (); 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: * clutter_redraw:
* *

View File

@ -100,6 +100,9 @@ void clutter_do_event (ClutterEvent *e
/* Debug utility functions */ /* Debug utility functions */
gboolean clutter_get_accessibility_enabled (void); gboolean clutter_get_accessibility_enabled (void);
CLUTTER_AVAILABLE_IN_1_14
void clutter_disable_accessibility (void);
/* Threading functions */ /* Threading functions */
void clutter_threads_set_lock_functions (GCallback enter_fn, void clutter_threads_set_lock_functions (GCallback enter_fn,
GCallback leave_fn); GCallback leave_fn);