entry: Ensure we unset the magnifier widget on ::destroy

Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.
This commit is contained in:
Carlos Garnacho 2015-06-12 13:30:34 +02:00
parent 5c38991367
commit a2d1d5244b

View File

@ -2965,6 +2965,9 @@ gtk_entry_destroy (GtkWidget *widget)
priv->recompute_idle = 0;
}
if (priv->magnifier)
_gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
GTK_WIDGET_CLASS (gtk_entry_parent_class)->destroy (widget);
}