[gtkada] .../examples/doublebuffer/anim_task.adb needs Gtk.Threads.G_Init

T. Kurt Bond tkb at tkb.mpl.com
Thu Jul 10 17:20:12 CEST 2003


The tasking animation example in
GtkAda-2.2.0/examples/doublebuffer/anim_task.adb needs to call
Gtk.Threads.G_Init before Gtk.Threads.Init is called, or the program
will abort with the message:

    Gdk-ERROR **: g_thread_init() must be called before gdk_threads_init()
    aborting...

I tried this under Windows 2000 and FreeBSD 4.8, but I imagine it
would happen elsewhere as well.

Here's a patch:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anim_task.patch
Type: application/octet-stream
Size: 342 bytes
Desc: Patch anim_task.adb to call Gtk.Threads.G_Init
Url : /pipermail/gtkada/attachments/20030710/6f5be894/attachment.obj 
-------------- next part --------------
-- 
T. Kurt Bond, tkb at tkb.mpl.com


More information about the gtkada mailing list