Hi there,
I have a simple problem for weeks that I remain unable to solve.
I simply want to modify the font, color, size, etc. of the characters
entered while they are typed in a GtkEntry. I am coding with GTK 2.24.0.
Looking around on the web, I found several possible functions to do
that, some of them seem to be specific to GTK3, however. I found - and
tried to play with - things like:
gtk_entry_set_attributes
gtk_widget_modify_text
gtk_widget_modify_base
gtk_widget_modify_font
gtk_widget_create_pango_layout
gtk_widget_create_pango_context
Some of them lead me to define and to argument a pointer to a struct of
type PangoFontDescription or GtkStyle. Hence, it seems that I also need
to use function like, e.g., pango_font_description_set_weight, etc., but
I'm not fully sure about this.
I remained unable to sort this out, and some of these functions are even
not recognized in my coding environment..
Hence, I just have now no idea about how to solve this. Code examples
(for example, like here:
http://www.yolinux.com/TUTORIALS/GTK+ProgrammingTips.html#TEXTBOXESFONTS) and/or
explanations would be more than welcomed!
Thanks for any help in this.
Cheers, Eric.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eric Wajnberg
Associated Professor at the
University of Montreal (Quebec, Canada)
I.N.R.A.
400 Route des Chappes, BP 167,
06903 Sophia Antipolis Cedex, France
Tel: (33-0) 4.92.38.64.47
Fax: (33-0) 4.92.38.65.57
e-mail: wajnb...@sophia.inra.fr
Web page: http://www.sophia.inra.fr/perso/wajnberg/
Editor-in-Chief of BioControl, Published by Springer.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list