Indeed, you were right regarding gtk_comb_box_set_entry_text_column().
For the record, below find a translation into C of your python program.
Here are some enhancements that I thought of, though I highly doubt that
they will be adapted because they are too specialized.
- Turn it into a
(gucharmap:30880): Gtk-CRITICAL **: 17:41:07.804: gtk_entry_set_text:
assertion 'text != NULL' failed
This happens e.g. when I'm using the up down arrows within the text
entry. Btw, this happens also if I only replace (without setting up
all the connections), gtk_combo_box_new() with
I agree that setting this up is a bit too complex, and it would be nice if
there was a standalone widget that this everything for you.
Meanwhile I tried converting your widget into C (with the intention of
replacing the font selection widget in gucharmap), and something is not
working. I get lots
On 07/27/2018 12:15 AM, Dov Grobgeld wrote:
Thanks. This is exactly what I was looking for! I didn't realize that
a combobox can be attached to a model, and that a model can be filtered.
Gtk models are powerful, but with great power comes great complexity ;)
Imo multiple partial string match
Thanks. This is exactly what I was looking for! I didn't realize that a
combobox can be attached to a model, and that a model can be filtered.
Imo multiple partial string match should be default behavior, which it is
unfortunately not. E.g. inkscape only matches in the beginning of the
string.
On 07/26/2018 07:36 AM, Dov Grobgeld via gtk-devel-list wrote:
Is there a widget that combines a searchbox with a combobox?
A use case would be to search for a fontname in a very long font list.
I would like to be able to type a search string, and have the opened
combobox display only entries
Is there a widget that combines a searchbox with a combobox?
A use case would be to search for a fontname in a very long font list.
I would like to be able to type a search string, and have the opened
combobox display only entries that match the typed string. A plus would be
if it is possible to