Ticket #1115 (closed defect: fixed)
Graphics.UI.Gtk.ModelView.entryCompletionSetTextModel broken (patch included)
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general (Gtk+, Glib) | Version: | 0.9.12 |
| Keywords: | Cc: | smithp@… |
Description
entryCompletionSetTextModel does not work. From what I can see, it replicates the functionality of gtk_entry_completion_set_text_column except it doesn't set the text-column property. The GtkEntryCompletion? uses this field to determine whether it calls the default match function, so possible fixes are:
1. Use g_object_set to set the text-column property (I couldn't work out how to do this)
2. Install a custom match function to compare the strings, (see ticket #1114)
3. Use the gtk_entry_completion_set_text_column function to handle it all (using the same method as used in file demo/treelist/Completion.hs).
The attacked patch implements option 3. It also implements & exports entryCompletionTextColumn along with set/get functions (just copied from the old module).
Cheers, Peter