[gtkada] Dynamically Changing the Toggle Button Label

Emmanuel Briot briot at gnat.com
Fri Oct 13 17:08:38 CEST 2000


 > With that in place and trying it again I still get the constraint error when 
 > I make the following call.
 > 
 > I tried this way:
 > 
 >    Gtk.Label.Set_Text
 >      (Gtk.Label.Gtk_Label
 >         (Gtk.Toggle_Button.Get_Child (Window1.Togglebutton1)),
 >           "label");


Did you really create the button with a child (for instance a string), or did
you create an empty button ? In the second case, there is of course a
constraint_error since Ada can not convert null to a Gtk_Label.

All the CE we get with GtkAda lately are all related to misuse of Ada itself,
not of GtkAda.

Emmanuel




More information about the gtkada mailing list