#1115: Graphics.UI.Gtk.ModelView.entryCompletionSetTextModel broken (patch
included)
----------------------------------+-----------------------------------------
Reporter: guest | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: general (Gtk+, Glib) | Version: 0.9.12
Keywords: |
----------------------------------+-----------------------------------------
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
--
Ticket URL: <http://hackage.haskell.org/trac/gtk2hs/ticket/1115>
Gtk2Hs <http://haskell.org/gtk2hs/>
The Gtk2Hs project
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel