gtkd-developers/GtkD

Builder doesn't work with other GTK libraries

Ryhon0 opened this issue · 1 comments

When opening a glade file, which contains widgets from other GTK libraries (vte, source view, libhandy, etc.) it throws a 'Invalid object type '...'' exception.

For example, opening a file, that has the HdyLeaflet widget from libhandy will throw this:

glib.GException.GException@/home/ryhon/.dub/packages/gtk-d-3.9.0/gtk-d/generated/gtkd/glib/GException.d(41): .:10:1 Invalid object type 'HdyLeaflet'

This link might help. It says something about libraries loaded into the global and local symbol namespace

GtkD is already using RTLD_GLOBAL so that shouldn't be the issue: https://github.com/gtkd-developers/GtkD/blob/master/generated/gtkd/gtkd/Loader.d#L433

Does adding a dummy allocation like in that thread also work for GtkD?