mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Add method clutter_disable_accessibility ()
https://bugzilla.gnome.org/show_bug.cgi?id=691468
This commit is contained in:
parent
36e25374cc
commit
9618f37b1d
@ -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:
|
||||
*
|
||||
|
@ -100,6 +100,9 @@ void clutter_do_event (ClutterEvent *e
|
||||
/* Debug utility functions */
|
||||
gboolean clutter_get_accessibility_enabled (void);
|
||||
|
||||
CLUTTER_AVAILABLE_IN_1_14
|
||||
void clutter_disable_accessibility (void);
|
||||
|
||||
/* Threading functions */
|
||||
void clutter_threads_set_lock_functions (GCallback enter_fn,
|
||||
GCallback leave_fn);
|
||||
|
Loading…
Reference in New Issue
Block a user