I am trying to get gsv.SourceCompletionWords working and this is the error that I get when I try to call SourceView.getCompletion():
(gtktest:4767): GtkSourceView-ERROR **: Error while loading the completion UI: .:23:106 Invalid object type 'GtkSourceCompletionInfo'
Does anyone have any suggestions?
Here is a test program to illustrate.
The error gets thrown on the "SourceCompletion sc = sv.getCompletion();" line:
import gio.Application : GioApplication = Application;
import gtk.Application;
import gtk.ApplicationWindow;
import gtk.Label;
import gsv.SourceView;
import gsv.SourceCompletion;
class HelloWorld : ApplicationWindow
{
this(Application application)
{
super(application);
setTitle("GtkD");
setBorderWidth(10);
add(new Label("Hello World"));
SourceView sv = new SourceView();
SourceCompletion sc = sv.getCompletion();
showAll();
}
}
int main(string[] args)
{
auto application = new Application("org.gtkd.demo.helloworld", GApplicationFlags.FLAGS_NONE);
application.addOnActivate(delegate void(GioApplication app) { new HelloWorld(application); });
return application.run(args);
}