summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-31 20:07:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-05-31 20:07:14 -0400
commit7ef362ec67c27a029c67f491be42633e18518815 (patch)
tree1c521f60284df2ca49576bb48db3dec17af2cc56 /gtk/gtkentrycompletion.c
parent7839c27e13ea35e26f83bdfe105351b43af1d6d5 (diff)
downloadgtk+-7ef362ec67c27a029c67f491be42633e18518815.tar.gz
GtkEntryCompletion: add a sanity check
Patch by John Lindgren, https://bugzilla.gnome.org/show_bug.cgi?id=650110
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 41f707f432..b88fa802f3 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;