[gtk+] GtkEntryCompletion: add a sanity check



commit 7ef362ec67c27a029c67f491be42633e18518815
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 31 20:07:14 2011 -0400

    GtkEntryCompletion: add a sanity check
    
    Patch by John Lindgren,
    https://bugzilla.gnome.org/show_bug.cgi?id=650110

 gtk/gtkentrycompletion.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 41f707f..b88fa80 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1263,6 +1263,7 @@ gtk_entry_completion_complete (GtkEntryCompletion *completion)
   gchar *tmp;
 
   g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion));
+  g_return_if_fail (GTK_IS_ENTRY (completion->priv->entry));
 
   if (!completion->priv->filter_model)
     return;



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