app: Fix a free cell renderer for GimpLanguageEntry

We must set the text column with
gtk_entry_completion_set_text_column() in order to get a free cell
renderer.
This commit is contained in:
Martin Nordholts
2009-07-18 19:55:07 +02:00
parent 84fd35d832
commit 20aa60ac8c

View File

@ -94,10 +94,15 @@ gimp_language_entry_constructor (GType type,
completion = g_object_new (GTK_TYPE_ENTRY_COMPLETION,
"model", entry->store,
"text-column", GIMP_LANGUAGE_STORE_LANGUAGE,
"inline-selection", TRUE,
NULL);
/* Note that we must use this function to set the text column,
* otherwise we won't get a cell renderer for free
*/
gtk_entry_completion_set_text_column (completion,
GIMP_LANGUAGE_STORE_LANGUAGE);
gtk_entry_set_completion (GTK_ENTRY (entry), completion);
g_object_unref (completion);
}