GNOME Bugzilla – Bug 579466
gtk_entry_completion_insert_action documentation is misleading
Last modified: 2018-02-10 03:22:47 UTC
I recently started to use completion "actions" in a GtkEntryCompletion. I have an array that, so I thought, each element would map to an "action" in the completion. It turns out deleting items and adding new items later on leads to curious tree iter failures. So the documentation says "Deletes the action at @index_ from @completion's action list." which I understand as each action having an index which is associated to a label, and can later be deleted or overwritten. But it turns out in practise 'index' is a *position* in a list. I suggest the documentation should be clearer about 'index' actually being a relative position depending on the actions currently present.
Created attachment 142470 [details] [review] Clarify index in documentation
Sounds ok to me. It would be more useful if it also contained a hint for how one can learn about an actions current index.
I wouldn't know of a way to find that out.
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.