Not being able to provide a real answer, I can give you an advice ... Look how this issue could be solved for 'general' gtk+. As GtkD is a wrapper on gtk+, the answer to your question should not be D-specific.