GNOME Bugzilla – Bug 710533
[regression] GtkBuilder can no longer construct GtkEntryCompletions properly.
Last modified: 2013-11-20 17:54:05 UTC
Created attachment 257735 [details] expected behaviour without gtkbuilder Back in 2012 I wrote an app that used GtkBuilder extensively, and it featured a GtkEntry and associated GtkEntryCompletion, which all worked well at the time. Unfortunately I can't pin down the exact moment this bug was introduced, but I've recently discovered that the GtkEntryCompletion does not function correctly on either Ubuntu Raring or Ubuntu Saucy. The expected behaviour is that the GtkEntryCompletion drops down a list of possible completions for the text entered in the GtEntry, but the observed behavior is that GtkEntryCompletion pops up a 1px tall box that is only visible due to it's drop shadow, and does not display any useful information. The GtkListStore in use is correctly populated by my code (so I've ruled out the possibility that the GtkEntryCompletion is correctly displaying an empty model), and the GtkEntryCompletion functions as expected when it is constructed in code. The bug is only present when GtkEntryCompletion has been constructed with GtkBuilder. Attached are two example scripts, one demonstrating the expected behavior (without using GtkBuilder), and one reproducing the bug with GtkBuilder. Note that there is no (usable) completion drop down with the gtkbuilder version.
Created attachment 257736 [details] demonstration of bug
Created attachment 258632 [details] [review] GtkEntryCompletion: call setter for "text-column" Call gtk_entry_completion_set_text_column() when setting the "text-column" property directly. The completion appeared empty when setting "text-column" directly (for example from a GtkBuilder file), because the setter creates and adds the GtkCellRendererText.
Review of attachment 258632 [details] [review]: ok
Committed as 9761a966.
*** Bug 712639 has been marked as a duplicate of this bug. ***