| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
|
|
|
|
|
| |
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
|
|
|
|
|
|
|
|
| |
Those property features don't seem to be in use anywhere.
They are redundant since the docs cover the same information
and more. They also created unnecessary translation work.
Closes #4904
|
|
|
|
| |
Does not generate a gir docstring without it.
|
|
|
|
| |
Implement the word and sentence attributes.
|
|
|
|
|
| |
Add a property to GtkTextTag and do all the
legwork to translate it to the Pango attribute.
|
|
|
|
|
|
| |
This adds a line-height property to GtkTexttag and a
line_height field to GtkTextAttributes, and translates
it to a pango attribute.
|
|
|
|
|
|
|
|
| |
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.
This adds a few missing nullable annotations too.
|
|
|
|
|
| |
allow-none has been deprecated for a long time
already. Instead use optional and nullable everywhere.
|
|
|
|
|
|
| |
One of the callers prefers that, it lets us avoid
copying the array in one place, and generally makes
for better code.
|
|
|
|
| |
No point in trying to optimize this.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The documentation engine will use the first paragraph as the summary for
a type or constant.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We are requiring pango 1.45.0 now, so no need to
Keep these ifdefs in the code any longer.
|
|
|
|
|
|
| |
The ci image does not have Pango 1.45, so for the
time being, make the overline support conditional
on Pango being new enough.
|
|
|
|
|
|
|
|
| |
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 avoids looking up the signal by name and instead uses the saved
signal identifier from gtktexttagtable.c
|
| |
|
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
|
|
|
|
|
| |
GtkSourceView is not using it, so it's unneeded. And it's certainly
diving deep into event internals of GtkTextView which hinders a proper
gesturization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
|
|
|
|
|
| |
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772371
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix s/occurence/occurrence in many places.
|
|
|
|
|
|
|
| |
The function is useful for a GtkTextTag subclass that adds new
properties.
https://bugzilla.gnome.org/show_bug.cgi?id=755416
|
|
|
|
|
|
| |
Following a similar change in GLib a while ago.
'bla' may by stupid, but it looks less dumb than `bla'.
|
|
|
|
|
| |
Add a ::font-features attribute to GtkTextTag, and support
font features when inserting Pango markup into a text buffer.
|
|
|
|
|
| |
Fix for 28063ee2e42e7ce47b7bd5326f2d53875a377d57 which got cherry-picked
to 3.16
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
These were overlooked when adding ::fallback and ::letter-spacing
recently.
|
|
|
|
|
|
|
| |
Add support for the Pango attributes controlling font fallback
and letter spacing to GtkTextTag.
https://bugzilla.gnome.org/show_bug.cgi?id=740954
|
|
|
|
|
| |
It has been replaced by GdkRGBA. Time to make it official.
http://bugzilla.gnome.org/show_bug.cgi?id=636695
|
|
|
|
| |
Instead of Return value:
|
|
|
|
| |
https://wiki.gnome.org/Design/OS/Typography
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move GtkWrapMode from GtkTextTag to the GtkTextView section. The wrap
mode property is in the text view.
Links to the "mark-set" and "mark-deleted" signals.
Add a precision about gtk_text_buffer_get_iter_at_line().
Fix typo in gtk_text_tag_set_priority().
https://bugzilla.gnome.org/show_bug.cgi?id=708076
|
|
|
|
|
|
| |
Fix two typos in gtk/gtktexttag.c.
https://bugzilla.gnome.org/show_bug.cgi?id=706335
|