[gtk+] a11y: Remove default description from GtkSwitch
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Remove default description from GtkSwitch
- Date: Thu, 12 Sep 2013 09:54:29 +0000 (UTC)
commit ef41c2a60fce891b4bbbe45bdd69274c679417de
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Wed Sep 11 18:37:26 2013 +0200
a11y: Remove default description from GtkSwitch
https://bugzilla.gnome.org/show_bug.cgi?id=707926
gtk/a11y/gtkswitchaccessible.c | 11 -----------
gtk/gtkswitch.c | 1 +
2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/gtk/a11y/gtkswitchaccessible.c b/gtk/a11y/gtkswitchaccessible.c
index 92e3cb3..669ba1f 100644
--- a/gtk/a11y/gtkswitchaccessible.c
+++ b/gtk/a11y/gtkswitchaccessible.c
@@ -54,21 +54,10 @@ gtk_switch_accessible_ref_state_set (AtkObject *accessible)
}
static void
-gtk_switch_accessible_initialize (AtkObject *accessible,
- gpointer widget)
-{
- ATK_OBJECT_CLASS (gtk_switch_accessible_parent_class)->initialize (accessible, widget);
-
- atk_object_set_role (accessible, ATK_ROLE_TOGGLE_BUTTON);
- atk_object_set_description (accessible, _("Switches between on and off states"));
-}
-
-static void
gtk_switch_accessible_class_init (GtkSwitchAccessibleClass *klass)
{
AtkObjectClass *atk_class = ATK_OBJECT_CLASS (klass);
- atk_class->initialize = gtk_switch_accessible_initialize;
atk_class->ref_state_set = gtk_switch_accessible_ref_state_set;
}
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 382fbc4..732d016 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -894,6 +894,7 @@ gtk_switch_class_init (GtkSwitchClass *klass)
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SWITCH_ACCESSIBLE);
+ gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_TOGGLE_BUTTON);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]