[clutter/clutter-1.14] Add method clutter_disable_accessibility ()
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.14] Add method clutter_disable_accessibility ()
- Date: Wed, 13 Mar 2013 18:08:02 +0000 (UTC)
commit 1c1c4f26af7391f87b6396347a54ca7c42d6bf89
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Fri Mar 1 10:58:54 2013 +0100
Add method clutter_disable_accessibility ()
https://bugzilla.gnome.org/show_bug.cgi?id=691468
clutter/clutter-main.c | 23 +++++++++++++++++++++++
clutter/clutter-main.h | 3 +++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index da7fe83..f132b1d 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -507,6 +507,29 @@ clutter_get_accessibility_enabled (void)
}
/**
+ * 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:
*
* Forces a redraw of the entire stage. Applications should never use this
diff --git a/clutter/clutter-main.h b/clutter/clutter-main.h
index 134ac3c..b7c8565 100644
--- a/clutter/clutter-main.h
+++ b/clutter/clutter-main.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]