[gtkada] Display problem with Set_Text for Gtk_Label
xavier.caron at epfl.ch
Tue Nov 21 18:28:35 CET 2000
Good point for you! I put around the Set_Text the ritual instructions, like
Set_Text (Gtk_Label(Window.Balance_Label), Natural'Image (New_Balance));
and it works! Thanks.
Of course, I have read the section 'Tasking with GtkAda' of the User Guide
when I begun to use tasks...but it's not very clear for me when to call
I had trouble in an other procedure when calling it, so I removed the call to
the two instructions and it was OK, even if it was not in a callback from
I'd suggest you provide more examples in the next release :)
Arnaud Charlet wrote:
> > Does anybody have a similar problem? Is there a known bug with the
> > set_text procedure for a label??
> There is known bug in this area.
> It looks like your are not protecteing your concurrent calls to Gtk by
> Gdk.Threads as documented in the User's Guide. I'd suggest you look at the
> 'Tasking with GtkAda' section if not already done.
> gtkada mailing list
> gtkada at gtkada.eu.org
More information about the gtkada