GNOME Bugzilla – Bug 733422
Regression: combo box initially blank
Last modified: 2014-07-20 10:21:07 UTC
There is a bug in gedit with a combo box initially blank. When clicking on the arrow the proposals are available and visible, and after selecting a proposal the text sometimes reappear in the combo box. The problem comes from this commit: commit 9c37b3de7466a22d4c784657a86c522e2a4f118a Author: Jasper St. Pierre <jstpierre@mecheye.net> Date: Thu Jun 26 18:22:42 2014 -0400 gtk: Don't use GObjectClass.constructor Use the newer constructed instead, which has a fast path in GObject. Reverting it fixes the bug. If you want to test, in gedit the combobox is in the open file dialog window, for choosing the encoding.
It can be fixed easily in gedit. gedit has a subclass of GtkComboBox with a constructed(). The chain up to the parent constructed() is done at the end. It worked before because constructor() is called before constructed(). So the simple fix in gedit is to chain up at the beginning of the function, not at the end. I don't think something can be done in gtk to avoid such regressions in other applications, apart from still using constructor(). So I think this bug can be closed as wontfix.
Fixed: https://git.gnome.org/browse/gedit/commit/?id=f012999aebefd226fa04a35b71506d4b67dd99dd