[gtk+] a11y: Remove widget_destroyed call
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Remove widget_destroyed call
- Date: Mon, 19 Dec 2011 15:51:02 +0000 (UTC)
commit 4652d4c3997e4ddc88cac3d3056cb034396c6d52
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 18 19:21:07 2011 +0100
a11y: Remove widget_destroyed call
GtkAccessible does all of that for us now.
gtk/a11y/gtkwidgetaccessible.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c
index 5a1fa4f..af27db7 100644
--- a/gtk/a11y/gtkwidgetaccessible.c
+++ b/gtk/a11y/gtkwidgetaccessible.c
@@ -131,25 +131,6 @@ gtk_widget_accessible_initialize (AtkObject *obj,
obj->role = ATK_ROLE_UNKNOWN;
}
-static void
-gtk_widget_accessible_destroyed (GtkWidget *widget,
- GtkAccessible *accessible)
-{
- gtk_accessible_set_widget (accessible, NULL);
- atk_object_notify_state_change (ATK_OBJECT (accessible), ATK_STATE_DEFUNCT, TRUE);
-}
-
-static void
-gtk_widget_accessible_connect_widget_destroyed (GtkAccessible *accessible)
-{
- GtkWidget *widget;
-
- widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible));
- if (widget)
- g_signal_connect_after (widget, "destroy",
- G_CALLBACK (gtk_widget_accessible_destroyed), accessible);
-}
-
static const gchar *
gtk_widget_accessible_get_description (AtkObject *accessible)
{
@@ -528,12 +509,9 @@ static void
_gtk_widget_accessible_class_init (GtkWidgetAccessibleClass *klass)
{
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
- GtkAccessibleClass *accessible_class = GTK_ACCESSIBLE_CLASS (klass);
klass->notify_gtk = gtk_widget_accessible_notify_gtk;
- accessible_class->connect_widget_destroyed = gtk_widget_accessible_connect_widget_destroyed;
-
class->get_description = gtk_widget_accessible_get_description;
class->get_parent = gtk_widget_accessible_get_parent;
class->ref_relation_set = gtk_widget_accessible_ref_relation_set;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]