Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
Hello, in the last months I was working on GTK3 bindings for the Nim programming language (http://nim-lang.org/). Now that they are nearly complete (https://github.com/StefanSalewski?tab=repositories) I tried to make some example code. One is the gtksourceview test-completion.c example, currently

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Scott Talbert
On Thu, 19 Mar 2015, Stefan Salewski wrote: in the last months I was working on GTK3 bindings for the Nim programming language (http://nim-lang.org/). Now that they are nearly complete (https://github.com/StefanSalewski?tab=repositories) I tried to make some example code. One is the gtksourcevie

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
On Wed, 2015-03-18 at 20:39 -0400, Scott Talbert wrote: > Basically, GTK assumes that its libraries are loaded into the global > symbol namespace. I'm guessing that Nim is probably loading them into > a > local namespace (RTLD_LOCAL) and thus when GtkBuilder tries to load > GtkSourceView, it ca

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Scott Talbert
On Thu, 19 Mar 2015, Stefan Salewski wrote: Basically, GTK assumes that its libraries are loaded into the global symbol namespace. I'm guessing that Nim is probably loading them into a local namespace (RTLD_LOCAL) and thus when GtkBuilder tries to load GtkSourceView, it can't find it. Interes

Re: Gtk::BuilderError Invalid object type GtkSourceView

2015-03-18 Thread Stefan Salewski
On Wed, 2015-03-18 at 21:09 -0400, Scott Talbert wrote: > You could check the code for where they call dlopen() and whether or > not > they pass the RTLD_GLOBAL flag. Thanks -- I already did after a first short google search. In the nimcache directory containing all the C intermediate code which