mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
widget: Unset self from accessible
This commit is contained in:
parent
23b5f9c066
commit
e042462674
@ -10101,11 +10101,14 @@ gtk_widget_real_destroy (GtkWidget *object)
|
||||
/* gtk_object_destroy() will already hold a refcount on object */
|
||||
GtkWidget *widget = GTK_WIDGET (object);
|
||||
GtkWidgetPrivate *priv = widget->priv;
|
||||
GtkAccessible *accessible;
|
||||
|
||||
accessible = g_object_steal_qdata (G_OBJECT (widget), quark_accessible_object);
|
||||
if (GTK_IS_ACCESSIBLE (accessible))
|
||||
gtk_accessible_set_widget (accessible, NULL);
|
||||
if (GTK_WIDGET_GET_CLASS (widget)->priv->accessible_type != GTK_TYPE_ACCESSIBLE)
|
||||
{
|
||||
GtkAccessible *accessible = g_object_steal_qdata (G_OBJECT (widget), quark_accessible_object);
|
||||
|
||||
if (accessible)
|
||||
gtk_accessible_set_widget (accessible, NULL);
|
||||
}
|
||||
|
||||
/* wipe accelerator closures (keep order) */
|
||||
g_object_set_qdata (G_OBJECT (widget), quark_accel_path, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user