GNOME Bugzilla – Bug 641073
Please be consistent with GtkEntryCompletion
Last modified: 2011-02-01 07:58:50 UTC
I'm following from bug #640698, which is a possible follow-up from bug #555087. After fix from commit 38f6065b the "match-selected" signal passes consistently the inner model, not the GtkTreeModelFilter one from the completion object, as parameters, either when selecting by mouse or keyboard, which is nice. But if I set a gtk_cell_layout_set_cell_data_func() on a gtk_entry_completion_new () object, then the function passes in the GtkTreeModelFilter model again. It's pretty confusing what model is passed in when, one may say at least. Could there be done some clarification or anything, if nothing else then in the documentation, though I agree that with the cell data func it's not so simple, so a note in GtkEntryCompletion description or such should work too. Thanks in advance.
Ugh, I don't think we want to duplicate the entire array of cell data funcs, so let me just document that other callbacks on the cell layout, cell renderers or cell area may get another model. The important thing is that the iter and the model match each other, so as long as you just use gtk_tree_model_get, you are fine.
Out of interest, what are you trying to do with the model that is making it important to discriminate between the filter model and your own ?
(In reply to comment #2) > Out of interest, what are you trying to do with the model that is making it > important to discriminate between the filter model and your own ? Me personally nothing interesting, it's just the way the ENameSelectorEntry is written. See [1] and search for GTK_TREE_MODEL_FILTER. Maybe it's just obsolete these days, but it was written couple years ago and after eds switched to gtk3 then runtime warnings and dis-functionality appeared. [1] http://git.gnome.org/browse/evolution-data-server/tree/libedataserverui/e-name-selector-entry.c