Ticket #1115 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

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@…


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


patch (46.2 kB) - added by guest 9 years ago.

Change History

Changed 9 years ago by guest

Changed 9 years ago by axel

This is with respect to the darcs developer version, not 0.9.12, right?

Changed 9 years ago by guest

Sorry, yes this relates to the current dev version.

Changed 9 years ago by axel

  • status changed from new to closed
  • resolution set to fixed

I've applied your patch (or it's essence). I've also moved EntryCompletion? from ModelView/ to Entry/.

Sorry that it took so long. It'll be in the next release.

Note: See TracTickets for help on using tickets.