[gtk+] GtkTextView: disconnect the magifier on destroy
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkTextView: disconnect the magifier on destroy
- Date: Sun, 21 Dec 2014 00:25:04 +0000 (UTC)
commit 52b3b4207ffb38233342fac447092b5cb3b52c26
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 20 19:19:24 2014 -0500
GtkTextView: disconnect the magifier on destroy
This prevents warnings that would otherwise happen when
the magifier is finalized.
gtk/gtktextview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index b619ab0..117e561 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]