[gtkada] Re: Scrolled window

Emmanuel Briot briot at gnat.com
Tue May 2 12:00:21 CEST 2000


Manuel Op de Coul writes:
 > I looked at create_text.adb in testgtk/ but couldn't find a reason
 > why my example wouldn't work. The difference in create_text.adb is that
 > no lines are added after the scrolled text widget is drawn.
 > I suspect it may be a bug in Gtk.
 > With the attachments the behaviour can be reproduced. Generate the
 > sources with the Glade file, and then replace window1_pkg-callbacks.adb.
 > The make command is
 > gnatmake -g -O2 -gnata project2 `gtkada-config`
 > Note that lines fall out of the viewport and the slider is not updated.

I tried your example on my system (linux, gtk+1.2.7, GtkAda 1.2.7 (not
released yet,
but we haven't modified the text widget as far as I know), and could not
reproduce the problem.
The scrollbar is correctly updated as text is inserted.

Since we intend to make a new release of GtkAda pretty soon, I would suggest
that you first try to update to gtk+1.2.7, since you can do it immediatly, and
then, when GtkAda is released, update to the new version.
This should fix your problem.

Emmanuel






More information about the gtkada mailing list