*** Underline Patch for GtkText by Patrick Earl (patearl@pobox.com) This patch is for adding underline to the gtk text widget. It is based off of the released gtk+-1.1.6 code. The only visible change outside of gtktext.c is the change from: gtk_text_insert (GtkText *text, GdkFont *font, GdkColor *fore, GdkColor *back, char *chars, gint length) to: gtk_text_insert (GtkText *text, GdkFont *font, GdkColor *fore, GdkColor *back, gboolean underlined, char *chars, gint length) Within the gtktext.c widget, the changes were quite straight-forward and involved not much more than carefully adding an extra property to the text that was similar to the other properties. I'm pretty sure that I didn't introduce any bugs into the code with this patch, but it was not extensively tested. The part of the code that actually draws the line is not pixel perfect and has been marked. It looks fine as it is unless you analyze it in detail. I hope that somebody with more knowledge than me will be able to fix that if needed. As for the format of the patch, I simply untared gtk+-1.1.6.tar.gz twice, renamed one copy to gtk+-1.1.6.new, copied the new gtktext.c and .h files into the new dir, and did a "diff -u -r gtk+-1.1.6/ gtk+-1.1.6.new/" Since this is my first time submitting a patch I'm not sure if this was the best way to do this, or what would be. If there is a better way, it would be nice if I could be made aware of that method :) It should be noted that this change breaks a lot of apps (including the test app that comes with gtk) due to the fact that it adds another parameter to the insert function. I did not correct the behaviour of the test app to correspond with the new library behaviour. Thanks for your time... hope to see underlines in an upcoming release :)