Hi all, 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?
Cheers, Edwin P.S. it can be compiled with: g++ test_complete.cc -I/usr/include/giomm-2.4 -I/usr/include/glibmm-2.4 -I /usr/lib64/glibmm-2.4/include -I /usr/include/glib-2.0/ -I /usr/lib64/glib-2.0/include/ -I /usr/include/sigc++-2.0/ -I /usr/lib64/sigc++-2.0/include/ --std=c++0x -lgiomm-2.4 --
#include <giomm.h> #include <giomm/filenamecompleter.h> #include <iostream> int main() { Gio::init(); Glib::RefPtr<Gio::FilenameCompleter> completer = Gio::FilenameCompleter::create(); std::vector<Glib::ustring> tmp = completer->get_completions( "/hom" ); std::cout << tmp.size() << std::endl; return 0; }
_______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list