GtkEntryCompletion: call cell_area()->clear()

Call gtk_cell_layout_clear() on the area instead of the completion in
gtk_entry_completion_clear_text_column_renderer(), because it is also
called from within gtk_entry_completion_clear().
This commit is contained in:
Lars Uebernickel 2013-11-03 14:05:44 +01:00
parent f6a0debdd9
commit 3c28297134

View File

@ -831,7 +831,11 @@ gtk_entry_completion_clear_text_column_renderer (GtkEntryCompletion *completion)
{
if (completion->priv->text_column != -1)
{
gtk_cell_layout_clear (GTK_CELL_LAYOUT (completion));
GtkCellArea *area;
area = gtk_entry_completion_get_area (GTK_CELL_LAYOUT (completion));
gtk_cell_layout_clear (area);
completion->priv->text_column = -1;
g_object_notify (G_OBJECT (completion), "text_column");
}