[gtk+] a11y: Remove set_description handling from GtkSwitch
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Remove set_description handling from GtkSwitch
- Date: Wed, 6 Jul 2011 14:50:29 +0000 (UTC)
commit 8efc350127b83b7bc55d67dc6744bef654765c3a
Author: Benjamin Otte <otte redhat com>
Date: Tue Jul 5 14:36:39 2011 +0200
a11y: Remove set_description handling from GtkSwitch
The function is unused in AT-SPI.
gtk/a11y/gtkswitchaccessible.c | 33 ---------------------------------
gtk/a11y/gtkswitchaccessible.h | 1 -
2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/gtk/a11y/gtkswitchaccessible.c b/gtk/a11y/gtkswitchaccessible.c
index 4503e37..71e9e91 100644
--- a/gtk/a11y/gtkswitchaccessible.c
+++ b/gtk/a11y/gtkswitchaccessible.c
@@ -60,8 +60,6 @@ gtk_switch_accessible_finalize (GObject *obj)
{
GtkSwitchAccessible *accessible = (GtkSwitchAccessible *)obj;
- g_free (accessible->action_description);
-
if (accessible->action_idle)
g_source_remove (accessible->action_idle);
@@ -94,7 +92,6 @@ gtk_switch_accessible_class_init (GtkSwitchAccessibleClass *klass)
static void
gtk_switch_accessible_init (GtkSwitchAccessible *self)
{
- self->action_description = NULL;
self->action_idle = 0;
}
@@ -114,34 +111,6 @@ gtk_switch_action_get_name (AtkAction *action,
return "toggle";
}
-static const gchar *
-gtk_switch_action_get_description (AtkAction *action,
- gint i)
-{
- GtkSwitchAccessible *accessible = (GtkSwitchAccessible *)action;
-
- if (i != 0)
- return NULL;
-
- return accessible->action_description;
-}
-
-static gboolean
-gtk_switch_action_set_description (AtkAction *action,
- gint i,
- const gchar *description)
-{
- GtkSwitchAccessible *accessible = (GtkSwitchAccessible*)action;
-
- if (i != 0)
- return FALSE;
-
- g_free (accessible->action_description);
- accessible->action_description = g_strdup (description);
-
- return TRUE;
-}
-
static gboolean
idle_do_action (gpointer data)
{
@@ -194,6 +163,4 @@ atk_action_interface_init (AtkActionIface *iface)
iface->do_action = gtk_switch_action_do_action;
iface->get_n_actions = gtk_switch_action_get_n_actions;
iface->get_name = gtk_switch_action_get_name;
- iface->get_description = gtk_switch_action_get_description;
- iface->set_description = gtk_switch_action_set_description;
}
diff --git a/gtk/a11y/gtkswitchaccessible.h b/gtk/a11y/gtkswitchaccessible.h
index 29b4487..694a83c 100644
--- a/gtk/a11y/gtkswitchaccessible.h
+++ b/gtk/a11y/gtkswitchaccessible.h
@@ -38,7 +38,6 @@ struct _GtkSwitchAccessible
{
GtkWidgetAccessible parent;
- gchar *action_description;
guint action_idle;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]