From 3c2829713463228094d66170564a4d6d7c31c245 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Sun, 3 Nov 2013 14:05:44 +0100 Subject: [PATCH] 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(). --- gtk/gtkentrycompletion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 61a3249aec..37763f7649 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -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"); }