GtkEntryCompletion: add a sanity check

Patch by John Lindgren,
https://bugzilla.gnome.org/show_bug.cgi?id=650110
This commit is contained in:
Matthias Clasen 2011-05-31 20:07:14 -04:00
parent 7839c27e13
commit 7ef362ec67

View File

@ -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;