Re: GTKCombo: autocomplete?



muppet wrote:


On Friday, May 21, 2004, at 12:46 AM, Daniel Kasak wrote:

    my $clientcombo = $bills_received->get_widget('SelectClient');

        $clientcombo->set_popdown_strings(@$clientlist);
        # Set up autocompletion in GTKEntry
    $entrycompletion = Gtk2::EntryCompletion->new();
    $entrycompletion->set_model($liststore);


you forgot to tell the completion object which column of the model has the strings in it.

  $entrycompletion->set_text_column (0);

Aha! Thankyou very much :)

Dan

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 45916

The following links have been placed here by the NUS Consulting internal spam filter and are for use by NUS Consulting staff only.
Please ingore these links.
Spam
Not spam
Forget previous vote


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]