[gnome-settings-daemon] a11y-settings: Add new plugin
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] a11y-settings: Add new plugin
- Date: Thu, 17 Feb 2011 23:54:21 +0000 (UTC)
commit dbd80d5b759525c87e4758d19bc6d13979a9c39f
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 17 23:53:28 2011 +0000
a11y-settings: Add new plugin
When "org.gnome.desktop.a11y.applications screen-reader-enabled" or
"org.gnome.desktop.a11y.applications screen-keyboard-enabled" get
enabled, we should set the
"org.gnome.desktop.interface toolkit-accessibility" key.
This is because the universal access UI will not offer a checkbox to set
just the accessibility settings.
https://bugzilla.gnome.org/show_bug.cgi?id=642596
configure.ac | 1 +
...gnome.settings-daemon.plugins.gschema.xml.in.in | 13 ++
plugins/Makefile.am | 1 +
plugins/a11y-settings/Makefile.am | 44 +++++
.../a11y-settings.gnome-settings-plugin.in | 8 +
plugins/a11y-settings/gsd-a11y-settings-manager.c | 187 ++++++++++++++++++++
plugins/a11y-settings/gsd-a11y-settings-manager.h | 57 ++++++
plugins/a11y-settings/gsd-a11y-settings-plugin.c | 110 ++++++++++++
plugins/a11y-settings/gsd-a11y-settings-plugin.h | 59 ++++++
9 files changed, 480 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 88ee3d8..e3edb1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -512,6 +512,7 @@ Makefile
gnome-settings-daemon/Makefile
plugins/Makefile
plugins/a11y-keyboard/Makefile
+plugins/a11y-settings/Makefile
plugins/automount/Makefile
plugins/background/Makefile
plugins/clipboard/Makefile
diff --git a/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in b/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
index 35e709a..9b0f7d0 100644
--- a/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
+++ b/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
@@ -1,6 +1,7 @@
<schemalist>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins" path="/org/gnome/settings-daemon/plugins/">
<child name="a11y-keyboard" schema="org.gnome.settings-daemon.plugins.a11y-keyboard"/>
+ <child name="a11y-settings" schema="org.gnome.settings-daemon.plugins.a11y-settings"/>
<child name="automount" schema="org.gnome.settings-daemon.plugins.automount"/>
<child name="background" schema="org.gnome.settings-daemon.plugins.background"/>
<child name="clipboard" schema="org.gnome.settings-daemon.plugins.clipboard"/>
@@ -23,6 +24,18 @@
<_description>Priority to use for this plugin in gnome-settings-daemon startup queue</_description>
</key>
</schema>
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.a11y-settings" path="/org/gnome/settings-daemon/plugins/a11y-settings/">
+ <key name="active" type="b">
+ <default>false</default>
+ <_summary>Activation of this plugin</_summary>
+ <_description>Whether this plugin would be activated by gnome-settings-daemon or not</_description>
+ </key>
+ <key name="priority" type="i">
+ <default>7</default>
+ <_summary>Priority to use for this plugin</_summary>
+ <_description>Priority to use for this plugin in gnome-settings-daemon startup queue</_description>
+ </key>
+ </schema>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.automount" path="/org/gnome/settings-daemon/plugins/automount/">
<key name="active" type="b">
<default>true</default>
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index a327a71..0772881 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -2,6 +2,7 @@ NULL =
enabled_plugins = \
a11y-keyboard \
+ a11y-settings \
automount \
background \
clipboard \
diff --git a/plugins/a11y-settings/Makefile.am b/plugins/a11y-settings/Makefile.am
new file mode 100644
index 0000000..999a6e8
--- /dev/null
+++ b/plugins/a11y-settings/Makefile.am
@@ -0,0 +1,44 @@
+plugin_LTLIBRARIES = \
+ liba11y-settings.la
+
+liba11y_settings_la_SOURCES = \
+ gsd-a11y-settings-manager.c \
+ gsd-a11y-settings-manager.h \
+ gsd-a11y-settings-plugin.c \
+ gsd-a11y-settings-plugin.h
+
+liba11y_settings_la_CPPFLAGS = \
+ -I$(top_srcdir)/gnome-settings-daemon \
+ -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
+ $(AM_CPPFLAGS)
+
+liba11y_settings_la_CFLAGS = \
+ $(SETTINGS_PLUGIN_CFLAGS) \
+ $(AM_CFLAGS)
+
+liba11y_settings_la_LDFLAGS = \
+ $(GSD_PLUGIN_LDFLAGS)
+
+liba11y_settings_la_LIBADD = \
+ $(SETTINGS_PLUGIN_LIBS)
+
+plugin_in_files = \
+ a11y-settings.gnome-settings-plugin.in
+
+plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
+
+EXTRA_DIST = \
+ $(plugin_in_files)
+
+CLEANFILES = \
+ $(plugin_DATA)
+
+DISTCLEANFILES = \
+ $(plugin_DATA)
+
+ GSD_INTLTOOL_PLUGIN_RULE@
+
+# override to _not_ install the test plugin
+# do not copy into your plugin
+install-pluginDATA:
+install-pluginLTLIBRARIES:
diff --git a/plugins/a11y-settings/a11y-settings.gnome-settings-plugin.in b/plugins/a11y-settings/a11y-settings.gnome-settings-plugin.in
new file mode 100644
index 0000000..1e5872a
--- /dev/null
+++ b/plugins/a11y-settings/a11y-settings.gnome-settings-plugin.in
@@ -0,0 +1,8 @@
+[GNOME Settings Plugin]
+Module=a11y-settings
+IAge=0
+_Name=Accessibility settings
+_Description=Accessibility settings plugin
+Authors=Bastien Nocera <hadess hadess net>
+Copyright=Copyright © 2011 Red Hat Inc.
+Website=
diff --git a/plugins/a11y-settings/gsd-a11y-settings-manager.c b/plugins/a11y-settings/gsd-a11y-settings-manager.c
new file mode 100644
index 0000000..d594587
--- /dev/null
+++ b/plugins/a11y-settings/gsd-a11y-settings-manager.c
@@ -0,0 +1,187 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007 William Jon McCann <mccann jhu edu>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#include "config.h"
+
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <errno.h>
+
+#include <locale.h>
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
+#include <gtk/gtk.h>
+
+#include "gnome-settings-profile.h"
+#include "gsd-a11y-settings-manager.h"
+
+#define GSD_A11Y_SETTINGS_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_A11Y_SETTINGS_MANAGER, GsdA11ySettingsManagerPrivate))
+
+struct GsdA11ySettingsManagerPrivate
+{
+ GSettings *interface_settings;
+ GSettings *a11y_apps_settings;
+};
+
+enum {
+ PROP_0,
+};
+
+static void gsd_a11y_settings_manager_class_init (GsdA11ySettingsManagerClass *klass);
+static void gsd_a11y_settings_manager_init (GsdA11ySettingsManager *a11y_settings_manager);
+static void gsd_a11y_settings_manager_finalize (GObject *object);
+
+G_DEFINE_TYPE (GsdA11ySettingsManager, gsd_a11y_settings_manager, G_TYPE_OBJECT)
+
+static gpointer manager_object = NULL;
+
+static void
+apps_settings_changed (GSettings *settings,
+ const char *key,
+ GsdA11ySettingsManager *manager)
+{
+ gboolean screen_reader, keyboard;
+
+ if (g_str_equal (key, "screen-reader-enabled") == FALSE &&
+ g_str_equal (key, "screen-keyboard-enabled") == FALSE)
+ return;
+
+ screen_reader = g_settings_get_boolean (manager->priv->a11y_apps_settings, "screen-reader-enabled");
+ keyboard = g_settings_get_boolean (manager->priv->a11y_apps_settings, "screen-keyboard-enabled");
+
+ if (screen_reader && keyboard)
+ g_settings_set_boolean (manager->priv->interface_settings, "toolkit-accessibility", TRUE);
+ else if (screen_reader == FALSE && keyboard == FALSE)
+ g_settings_set_boolean (manager->priv->interface_settings, "toolkit-accessibility", FALSE);
+}
+
+gboolean
+gsd_a11y_settings_manager_start (GsdA11ySettingsManager *manager,
+ GError **error)
+{
+ g_debug ("Starting a11y_settings manager");
+ gnome_settings_profile_start (NULL);
+
+ manager->priv->interface_settings = g_settings_new ("org.gnome.desktop.interface");
+ manager->priv->a11y_apps_settings = g_settings_new ("org.gnome.desktop.a11y.applications");
+
+ g_signal_connect (G_OBJECT (manager->priv->a11y_apps_settings), "changed",
+ G_CALLBACK (apps_settings_changed), manager);
+
+ /* If any of the screen reader or on-screen keyboard are enabled,
+ * make sure a11y is enabled for the toolkits.
+ * We don't do the same thing for the reverse so it's possible to
+ * enable AT-SPI for the toolkits without using an a11y app */
+ if (g_settings_get_boolean (manager->priv->a11y_apps_settings, "screen-keyboard-enabled") ||
+ g_settings_get_boolean (manager->priv->a11y_apps_settings, "screen-reader-enabled"))
+ g_settings_set_boolean (manager->priv->interface_settings, "toolkit-accessibility", TRUE);
+
+ gnome_settings_profile_end (NULL);
+ return TRUE;
+}
+
+void
+gsd_a11y_settings_manager_stop (GsdA11ySettingsManager *manager)
+{
+ if (manager->priv->interface_settings) {
+ g_object_unref (manager->priv->interface_settings);
+ manager->priv->interface_settings = NULL;
+ }
+ if (manager->priv->a11y_apps_settings) {
+ g_object_unref (manager->priv->a11y_apps_settings);
+ manager->priv->a11y_apps_settings = NULL;
+ }
+ g_debug ("Stopping a11y_settings manager");
+}
+
+static GObject *
+gsd_a11y_settings_manager_constructor (GType type,
+ guint n_construct_properties,
+ GObjectConstructParam *construct_properties)
+{
+ GsdA11ySettingsManager *a11y_settings_manager;
+
+ a11y_settings_manager = GSD_A11Y_SETTINGS_MANAGER (G_OBJECT_CLASS (gsd_a11y_settings_manager_parent_class)->constructor (type,
+ n_construct_properties,
+ construct_properties));
+
+ return G_OBJECT (a11y_settings_manager);
+}
+
+static void
+gsd_a11y_settings_manager_dispose (GObject *object)
+{
+ G_OBJECT_CLASS (gsd_a11y_settings_manager_parent_class)->dispose (object);
+}
+
+static void
+gsd_a11y_settings_manager_class_init (GsdA11ySettingsManagerClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->constructor = gsd_a11y_settings_manager_constructor;
+ object_class->dispose = gsd_a11y_settings_manager_dispose;
+ object_class->finalize = gsd_a11y_settings_manager_finalize;
+
+ g_type_class_add_private (klass, sizeof (GsdA11ySettingsManagerPrivate));
+}
+
+static void
+gsd_a11y_settings_manager_init (GsdA11ySettingsManager *manager)
+{
+ manager->priv = GSD_A11Y_SETTINGS_MANAGER_GET_PRIVATE (manager);
+
+}
+
+static void
+gsd_a11y_settings_manager_finalize (GObject *object)
+{
+ GsdA11ySettingsManager *a11y_settings_manager;
+
+ g_return_if_fail (object != NULL);
+ g_return_if_fail (GSD_IS_A11Y_SETTINGS_MANAGER (object));
+
+ a11y_settings_manager = GSD_A11Y_SETTINGS_MANAGER (object);
+
+ g_return_if_fail (a11y_settings_manager->priv != NULL);
+
+ G_OBJECT_CLASS (gsd_a11y_settings_manager_parent_class)->finalize (object);
+}
+
+GsdA11ySettingsManager *
+gsd_a11y_settings_manager_new (void)
+{
+ if (manager_object != NULL) {
+ g_object_ref (manager_object);
+ } else {
+ manager_object = g_object_new (GSD_TYPE_A11Y_SETTINGS_MANAGER, NULL);
+ g_object_add_weak_pointer (manager_object,
+ (gpointer *) &manager_object);
+ }
+
+ return GSD_A11Y_SETTINGS_MANAGER (manager_object);
+}
diff --git a/plugins/a11y-settings/gsd-a11y-settings-manager.h b/plugins/a11y-settings/gsd-a11y-settings-manager.h
new file mode 100644
index 0000000..7ae0cbc
--- /dev/null
+++ b/plugins/a11y-settings/gsd-a11y-settings-manager.h
@@ -0,0 +1,57 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007 William Jon McCann <mccann jhu edu>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef __GSD_A11Y_SETTINGS_MANAGER_H
+#define __GSD_A11Y_SETTINGS_MANAGER_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GSD_TYPE_A11Y_SETTINGS_MANAGER (gsd_a11y_settings_manager_get_type ())
+#define GSD_A11Y_SETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSD_TYPE_A11Y_SETTINGS_MANAGER, GsdA11ySettingsManager))
+#define GSD_A11Y_SETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GSD_TYPE_A11Y_SETTINGS_MANAGER, GsdA11ySettingsManagerClass))
+#define GSD_IS_A11Y_SETTINGS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSD_TYPE_A11Y_SETTINGS_MANAGER))
+#define GSD_IS_A11Y_SETTINGS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GSD_TYPE_A11Y_SETTINGS_MANAGER))
+#define GSD_A11Y_SETTINGS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSD_TYPE_A11Y_SETTINGS_MANAGER, GsdA11ySettingsManagerClass))
+
+typedef struct GsdA11ySettingsManagerPrivate GsdA11ySettingsManagerPrivate;
+
+typedef struct
+{
+ GObject parent;
+ GsdA11ySettingsManagerPrivate *priv;
+} GsdA11ySettingsManager;
+
+typedef struct
+{
+ GObjectClass parent_class;
+} GsdA11ySettingsManagerClass;
+
+GType gsd_a11y_settings_manager_get_type (void);
+
+GsdA11ySettingsManager *gsd_a11y_settings_manager_new (void);
+gboolean gsd_a11y_settings_manager_start (GsdA11ySettingsManager *manager,
+ GError **error);
+void gsd_a11y_settings_manager_stop (GsdA11ySettingsManager *manager);
+
+G_END_DECLS
+
+#endif /* __GSD_A11Y_SETTINGS_MANAGER_H */
diff --git a/plugins/a11y-settings/gsd-a11y-settings-plugin.c b/plugins/a11y-settings/gsd-a11y-settings-plugin.c
new file mode 100644
index 0000000..18370ae
--- /dev/null
+++ b/plugins/a11y-settings/gsd-a11y-settings-plugin.c
@@ -0,0 +1,110 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007 William Jon McCann <mccann jhu edu>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#include "config.h"
+
+#include <glib/gi18n-lib.h>
+#include <gmodule.h>
+
+#include "gnome-settings-plugin.h"
+#include "gsd-a11y-settings-plugin.h"
+#include "gsd-a11y-settings-manager.h"
+
+struct GsdA11ySettingsPluginPrivate {
+ GsdA11ySettingsManager *manager;
+};
+
+#define GSD_A11Y_SETTINGS_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), GSD_TYPE_A11Y_SETTINGS_PLUGIN, GsdA11ySettingsPluginPrivate))
+
+GNOME_SETTINGS_PLUGIN_REGISTER (GsdA11ySettingsPlugin, gsd_a11y_settings_plugin)
+
+static void
+gsd_a11y_settings_plugin_init (GsdA11ySettingsPlugin *plugin)
+{
+ plugin->priv = GSD_A11Y_SETTINGS_PLUGIN_GET_PRIVATE (plugin);
+
+ g_debug ("GsdA11ySettingsPlugin initializing");
+
+ plugin->priv->manager = gsd_a11y_settings_manager_new ();
+}
+
+static void
+gsd_a11y_settings_plugin_finalize (GObject *object)
+{
+ GsdA11ySettingsPlugin *plugin;
+
+ g_return_if_fail (object != NULL);
+ g_return_if_fail (GSD_IS_A11Y_SETTINGS_PLUGIN (object));
+
+ g_debug ("GsdA11ySettingsPlugin finalizing");
+
+ plugin = GSD_A11Y_SETTINGS_PLUGIN (object);
+
+ g_return_if_fail (plugin->priv != NULL);
+
+ if (plugin->priv->manager != NULL) {
+ g_object_unref (plugin->priv->manager);
+ }
+
+ G_OBJECT_CLASS (gsd_a11y_settings_plugin_parent_class)->finalize (object);
+}
+
+static void
+impl_activate (GnomeSettingsPlugin *plugin)
+{
+ gboolean res;
+ GError *error;
+
+ g_debug ("Activating a11y-settings plugin");
+
+ error = NULL;
+ res = gsd_a11y_settings_manager_start (GSD_A11Y_SETTINGS_PLUGIN (plugin)->priv->manager, &error);
+ if (! res) {
+ g_warning ("Unable to start a11y-settings manager: %s", error->message);
+ g_error_free (error);
+ }
+}
+
+static void
+impl_deactivate (GnomeSettingsPlugin *plugin)
+{
+ g_debug ("Deactivating a11y-settings plugin");
+ gsd_a11y_settings_manager_stop (GSD_A11Y_SETTINGS_PLUGIN (plugin)->priv->manager);
+}
+
+static void
+gsd_a11y_settings_plugin_class_init (GsdA11ySettingsPluginClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GnomeSettingsPluginClass *plugin_class = GNOME_SETTINGS_PLUGIN_CLASS (klass);
+
+ object_class->finalize = gsd_a11y_settings_plugin_finalize;
+
+ plugin_class->activate = impl_activate;
+ plugin_class->deactivate = impl_deactivate;
+
+ g_type_class_add_private (klass, sizeof (GsdA11ySettingsPluginPrivate));
+}
+
+static void
+gsd_a11y_settings_plugin_class_finalize (GsdA11ySettingsPluginClass *klass)
+{
+}
+
diff --git a/plugins/a11y-settings/gsd-a11y-settings-plugin.h b/plugins/a11y-settings/gsd-a11y-settings-plugin.h
new file mode 100644
index 0000000..698c0ee
--- /dev/null
+++ b/plugins/a11y-settings/gsd-a11y-settings-plugin.h
@@ -0,0 +1,59 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef __GSD_A11Y_SETTINGS_PLUGIN_H__
+#define __GSD_A11Y_SETTINGS_PLUGIN_H__
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gmodule.h>
+
+#include "gnome-settings-plugin.h"
+
+G_BEGIN_DECLS
+
+#define GSD_TYPE_A11Y_SETTINGS_PLUGIN (gsd_a11y_settings_plugin_get_type ())
+#define GSD_A11Y_SETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSD_TYPE_A11Y_SETTINGS_PLUGIN, GsdA11ySettingsPlugin))
+#define GSD_A11Y_SETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GSD_TYPE_A11Y_SETTINGS_PLUGIN, GsdA11ySettingsPluginClass))
+#define GSD_IS_A11Y_SETTINGS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSD_TYPE_A11Y_SETTINGS_PLUGIN))
+#define GSD_IS_A11Y_SETTINGS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GSD_TYPE_A11Y_SETTINGS_PLUGIN))
+#define GSD_A11Y_SETTINGS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSD_TYPE_A11Y_SETTINGS_PLUGIN, GsdA11ySettingsPluginClass))
+
+typedef struct GsdA11ySettingsPluginPrivate GsdA11ySettingsPluginPrivate;
+
+typedef struct
+{
+ GnomeSettingsPlugin parent;
+ GsdA11ySettingsPluginPrivate *priv;
+} GsdA11ySettingsPlugin;
+
+typedef struct
+{
+ GnomeSettingsPluginClass parent_class;
+} GsdA11ySettingsPluginClass;
+
+GType gsd_a11y_settings_plugin_get_type (void) G_GNUC_CONST;
+
+/* All the plugins must implement this function */
+G_MODULE_EXPORT GType register_gnome_settings_plugin (GTypeModule *module);
+
+G_END_DECLS
+
+#endif /* __GSD_A11Y_SETTINGS_PLUGIN_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]