Re: Combined search and combobox?



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 of warnings about:

(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 gtk_combo_box_new_with_entry(). I'm still trying to figure out what went wrong.

Regards,
Dov


On Fri, Jul 27, 2018 at 2:25 PM Reuben Rissler <silrep emypeople net> wrote:
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 should be default behavior, which it is unfortunately not. E.g. inkscape only matches in the beginning of the string.
Agreed.

Is there a GNOME guide line about this?
Not that I have seen in my travels using Gtk.

I came up with this tool out of necessity for my accounting/small business system. I never gave it a thought somebody else would find it useful until your post to this mailing list. When you posted, I thought you might find this interesting. So would this be useful to a wider audience? I don't know if the Gtk devs would consider making a special combo with this feature, as it seems so easy to setup. After you know how :)

Glad to be of help,
Reuben
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]