[gtk+] entry: Ensure we unset the magnifier widget on ::destroy



commit a2d1d5244b400074b247dc8bdfbacc54dbe1be55
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jun 12 13:30:34 2015 +0200

    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.

 gtk/gtkentry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 61c3ba4..4865e96 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]