[gtk+] GtkTextView: disconnect the magifier on destroy



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]