On Sat, 26 Mar 2016 18:12:53 +0100, Mike Wey wrote:

On 03/26/2016 04:01 PM, Emily wrote:

On Sat, 26 Mar 2016 13:59:24 +0100, Mike Wey wrote:

On 03/25/2016 04:33 PM, Emily wrote:

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

It might be a GTK issue. On Kubuntu 14.04 with GTK 3.10 i can reproduce
the segfault.
While using a 32bit version of Archlinux with GTK 3.18 the segfault
doesn't occur.

Interesting, i hope the issue will be fixed soon, thank you for the support!

Interestingly calling the c function directly:

import gtkc.gtk;
gtk_style_context_add_provider_for_screen(globalScreen.getScreenStruct(), style.getStyleProviderStruct(), 
GTK_STYLE_PROVIDER_PRIORITY_USER);

Doesn't cause a segfault.

Wow i try it now thank you!