[gtkada] Scrolled window

Emmanuel Briot briot at gnat.com
Wed Apr 26 10:45:39 CEST 2000


Manuel Op de Coul writes:
 > In the widget properties of a scrolled window I have selected in Glade:
 > H Updates: Continuous and V Updates: Continuous.
 > However, in GTK there is no procedure to set this. The type 
 > Gtk_Update_Type is used in Gtk.Grange but not Gtk.Scrolled_Window.

This seems to be a bug in Glade, since there is no way to set these properties
for a Scrolled_Window, whatever the language (Ada, C,...).
I have tried your example with a C program, and no code was generated to set
these properties.


 > When I insert text in a scrolled window in the application, the
 > vertical scrollbar is not updated when the number of text lines grows.
 > Is this feature not yet implemented in GTK, or am I missing the right
 > way to do this?

This works in testgtk/, which is a short demo, so you should probably look at
create_text.adb.
The only thing that might be relevant that I see there is
   Set_Policy (Scrolled, Policy_Never, Policy_Always);

Emmanuel





More information about the gtkada mailing list