[gtkada] Gtk_Text_Attributes versus Gtk_Text_Appearance
Pascal
p.p14 at orange.fr
Sun Mar 18 22:11:23 CET 2012
Hello, in specification gtk-text_attributes.ads, 2 types Gtk_Text_Attributes and Gtk_Text_Appearance appear respectively for some set procedures and get functions.
For instance Set_Fg_Color at line 3 and Get_Fg_Color at line 9.
1. procedure Set_Fg_Color
2.
3. (Appearance : Gtk_Text_Appearance
4. ;
5. Color : Gdk.Color.Gdk_Color
6. );
7. function Get_Fg_Color
8.
9. (Appearance : Gtk_Text_Attributes
10. ) return Gdk.Color.Gdk_Color
11. ;
12. -- The color used to display the text
Curiously the map C functions have only GtkTextAppearance type.
Why 2 different types in Ada spec ?
Regards, Pascal.
http://blady.pagesperso-orange.fr
More information about the gtkada
mailing list