| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Add a property to GtkTextTag and do all the
legwork to translate it to the Pango attribute.
|
|
|
|
|
|
| |
Set the line height in the default attributes from
the CSS style. This makes line height work in
GtkTextView.
|
|
|
|
|
|
| |
This adds a line-height property to GtkTexttag and a
line_height field to GtkTextAttributes, and translates
it to a pango attribute.
|
|
|
|
| |
Replace leftover gtk-doc syntax (#Type) with backquotes.
|
| |
|
|
|
|
| |
Pack the GtkTextAttributes struct better.
|
|
|
|
|
| |
The type is private, so making functions operating on it public is
pointless.
|
|
|
|
|
|
| |
Replace most remaining uses of GTK+ in the docs and
user-visible strings by GTK. Also remove some leftover
"Was added in 3.x" sentences from the docs.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Add support for recently added Pango attributes
for overlines and hyphenation control. The new
properties of GtkTextTag are
overline, overline-rgba, allow-breaks, show-spaces
and insert-hyphens.
|
|
|
|
|
|
|
| |
This was not quite complete, as gtktextattributes.h was still
being included in public headers.
https://bugzilla.gnome.org/show_bug.cgi?id=773903
|
|
|
|
|
|
| |
Now that GtkTextAttributes is private, we can clean this struct
up a bit. The first step is to switch from GdkColor to GdkRGBA,
and adapt all users.
|
| |
|
|
|
|
|
| |
Add a ::font-features attribute to GtkTextTag, and support
font features when inserting Pango markup into a text buffer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Document new fields in GtkTextAttributes, remove redundant comments.
|
|
|
|
|
|
|
| |
Add support for the Pango attributes controlling font fallback
and letter spacing to GtkTextTag.
https://bugzilla.gnome.org/show_bug.cgi?id=740954
|
|
|
|
| |
https://wiki.gnome.org/Design/OS/Typography
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=711158
|
|
|
|
|
|
|
|
|
|
| |
This avoids having Gtk-3.0.gir differ on 32 vs 64 bit, which causes
issues for "multilib" in Fedora/OpenSUSE type systems.
See https://bugzilla.gnome.org/show_bug.cgi?id=711153 for more
information.
https://bugzilla.gnome.org/show_bug.cgi?id=711158
|
|
|
|
| |
Add annotations to all exported functions in GTK+ headers.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=697048
|
|
|
|
|
|
| |
I didn't know what "pg" stands for.
https://bugzilla.gnome.org/show_bug.cgi?id=697048
|
|
|
|
|
|
| |
gcc has optimizations for include guards that only work
if they are outermost in the the header.
https://bugzilla.gnome.org/show_bug.cgi?id=689810
|
|
|
|
|
|
|
| |
Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef to prevent
warnings about them not being defined when including gtktextattributes.h.
https://bugzilla.gnome.org/show_bug.cgi?id=660619
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|