a11y: Remove widget_destroyed call
GtkAccessible does all of that for us now.
This commit is contained in:
@ -131,25 +131,6 @@ gtk_widget_accessible_initialize (AtkObject *obj,
|
|||||||
obj->role = ATK_ROLE_UNKNOWN;
|
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 *
|
static const gchar *
|
||||||
gtk_widget_accessible_get_description (AtkObject *accessible)
|
gtk_widget_accessible_get_description (AtkObject *accessible)
|
||||||
{
|
{
|
||||||
@ -528,12 +509,9 @@ static void
|
|||||||
_gtk_widget_accessible_class_init (GtkWidgetAccessibleClass *klass)
|
_gtk_widget_accessible_class_init (GtkWidgetAccessibleClass *klass)
|
||||||
{
|
{
|
||||||
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
|
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
|
||||||
GtkAccessibleClass *accessible_class = GTK_ACCESSIBLE_CLASS (klass);
|
|
||||||
|
|
||||||
klass->notify_gtk = gtk_widget_accessible_notify_gtk;
|
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_description = gtk_widget_accessible_get_description;
|
||||||
class->get_parent = gtk_widget_accessible_get_parent;
|
class->get_parent = gtk_widget_accessible_get_parent;
|
||||||
class->ref_relation_set = gtk_widget_accessible_ref_relation_set;
|
class->ref_relation_set = gtk_widget_accessible_ref_relation_set;
|
||||||
|
|||||||
Reference in New Issue
Block a user