Re: FilenameCompleter



On Thu, Jan 17, 2013 at 7:54 AM, Edwin van Leeuwen <edder tkwsping nl> wrote:
I'm trying to use Gio::FilenameCompleter to implement simple tab completion within my app, but seem to be unable to make it work. I have attached a simple example. I tried with many different initial_terms (i.e. "/hom" in the example), but always get 0 results. Am I missing something?

You probably need to connect to signal_got_completion_data() and only query get_completions() in/after the callback. I suspect you'll need to have a MainLoop going, so your minimal example won't work.

By the way, if you have pkg-config you can compile a little easier with g++ `pkg-config --libs --cflags glibmm-2.4` file.cc 


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