summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.c
Commit message (Collapse)AuthorAgeFilesLines
* GtkTextView: Support font featuresMatthias Clasen2015-07-291-1/+14
| | | | | Add a ::font-features attribute to GtkTextTag, and support font features when inserting Pango markup into a text buffer.
* textview: add support for underline and strikethrough colorsChristian Hergert2015-03-171-1/+22
| | | | | | | | | | | | | | | | | | | | This commit adds the GtkTextTag:underline-rgba and :strikethrough-rgba properties and the necessary plumbing to apply these colors in GtkTextLayout. With this change, you can alter the color of underlines including those of type PANGO_UNDERLINE_ERROR. You might want to alter the underline color to differentiate between spelling and grammer mistakes. In code editors, it is convenient to differentiate between errors and warnings. Note that the GtkTextAppearance struct is public ABI and has no spare room for new fields, so we are resorting to some tricky packing to store the colors in the unused pixel field of the fg_color and bg_color structs. This packing is accomplished by the macros in gtktextattributesprivate.h. Signed-off-by: Christian Hergert <christian@hergert.me> https://bugzilla.gnome.org/show_bug.cgi?id=402168
* GtkTextView: Add fallback and letter-spacing supportMatthias Clasen2014-12-041-2/+10
| | | | | | | Add support for the Pango attributes controlling font fallback and letter spacing to GtkTextTag. https://bugzilla.gnome.org/show_bug.cgi?id=740954
* Deprecate GdkColorMatthias Clasen2014-05-221-0/+10
| | | | | It has been replaced by GdkRGBA. Time to make it official. http://bugzilla.gnome.org/show_bug.cgi?id=636695
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* gtktextattributes: include the right headersSébastien Wilmet2013-04-011-3/+1
| | | | | | | Some function prototypes in gtktexttagprivate.h are implemented in gtktextattributes.c. https://bugzilla.gnome.org/show_bug.cgi?id=697048
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+0
| | | | and remove gtkmainprivate.h completely.
* Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgbaTristan Van Berkom2011-05-061-0/+8
| | | | | Added the remaining implementation bits for rendering paragraph backgrounds with rgba values and updated the test case.
* Added GdkRGBA properties to GtkTextTag.Tristan Van Berkom2011-05-061-20/+78
| | | | | | | | | | | | This now allows text view to render text with alpha values in the text foreground and backgrounds, the work is almost complete, currently the error-underline-color is still a GdkColor style property and since we use only GdkRGBA for rendering it needs to be converted and applied, probably a new rgba version of the style property should also be introduced. This commit adds tests/testtextview that must be run from the tests/ directory to show translucent text in action.
* textview: Move text attributes code into its own .c fileBenjamin Otte2011-01-111-0/+348