summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-12-20 19:19:24 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-12-20 19:19:24 -0500
commit52b3b4207ffb38233342fac447092b5cb3b52c26 (patch)
treed20a7c4f2cf1740b02c78c1cd8431a145df3cb11 /gtk/gtktextview.c
parent10d0ca0a3d5536a5c9926998e54775a8b0fd8b2c (diff)
downloadgtk+-52b3b4207ffb38233342fac447092b5cb3b52c26.tar.gz
GtkTextView: disconnect the magifier on destroy
This prevents warnings that would otherwise happen when the magifier is finalized.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index b619ab0998..117e561cea 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -3272,6 +3272,9 @@ gtk_text_view_destroy (GtkWidget *widget)
priv->pixel_cache = NULL;
}
+ if (priv->magnifier)
+ _gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
+
GTK_WIDGET_CLASS (gtk_text_view_parent_class)->destroy (widget);
}