gtkd-developers / GtkD

GtkD is a D binding and OO wrapper of GTK+ originally created by Antonio Monteiro
http://gtkd.org
Other
320 stars 71 forks source link

Builder doesn't work with other GTK libraries #317

Open Ryhon0 opened 3 years ago

Ryhon0 commented 3 years ago

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

MikeWey commented 3 years ago

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?