summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorJoanmarie Diggs <jdiggs@igalia.com>2014-11-20 10:19:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-11-25 22:33:27 -0500
commit246c172e1e9eb9e815c262a83fefed0ed4d89c05 (patch)
treef9a032a6527724e42f02884d08c8f656511f2e58 /gtk/a11y
parent605f2efa734cdbb1ef2ebb94209ea064b0509110 (diff)
downloadgtk+-246c172e1e9eb9e815c262a83fefed0ed4d89c05.tar.gz
GtkButtonAccessible: Stop emitting state-change signals for ATK_STATE_ARMED
ATK_STATE_ARMED is now deprecated. There is no replacement. https://bugzilla.gnome.org/show_bug.cgi?id=740438
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkbuttonaccessible.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gtk/a11y/gtkbuttonaccessible.c b/gtk/a11y/gtkbuttonaccessible.c
index 7a3155536b..4873399e05 100644
--- a/gtk/a11y/gtkbuttonaccessible.c
+++ b/gtk/a11y/gtkbuttonaccessible.c
@@ -31,26 +31,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkButtonAccessible, gtk_button_accessible, GTK_TYPE_CO
G_IMPLEMENT_INTERFACE (ATK_TYPE_IMAGE, atk_image_interface_init))
static void
-state_changed_cb (GtkWidget *widget, GtkStateFlags previous_flags)
-{
- AtkObject *accessible;
- GtkStateFlags flags;
- gboolean was_active;
- gboolean active;
-
- flags = gtk_widget_get_state_flags (widget);
-
- was_active = (previous_flags & GTK_STATE_FLAG_ACTIVE) != 0;
- active = (flags & GTK_STATE_FLAG_ACTIVE) != 0;
-
- accessible = gtk_widget_get_accessible (widget);
- if (active && !was_active)
- atk_object_notify_state_change (accessible, ATK_STATE_ARMED, TRUE);
- else if (!active && was_active)
- atk_object_notify_state_change (accessible, ATK_STATE_ARMED, FALSE);
-}
-
-static void
gtk_button_accessible_initialize (AtkObject *obj,
gpointer data)
{
@@ -58,8 +38,6 @@ gtk_button_accessible_initialize (AtkObject *obj,
ATK_OBJECT_CLASS (gtk_button_accessible_parent_class)->initialize (obj, data);
- g_signal_connect (data, "state-flags-changed", G_CALLBACK (state_changed_cb), NULL);
-
parent = gtk_widget_get_parent (gtk_accessible_get_widget (GTK_ACCESSIBLE (obj)));
if (GTK_IS_TREE_VIEW (parent))
{