[Vala] g_thread_init() must be called before gdk_threads_init()



Hello,

I'm trying to write an application with a FileChooserDialog and that
needs the gdk_threads_init...
So I added in my code something like this:
...
        static int main (string[] args) {
                Gtk.init (ref args);
                Gdk.threads_init ();
...
But if I execute the application I get this error:
GLIB ERROR ** Gdk - g_thread_init() must be called before gdk_threads_init()

But I can't find how to call g_thread_init ().
How can I solve this problem?

Gr,
Thijs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]