summaryrefslogtreecommitdiff
path: root/gtk/gtktexttag.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Rename some private headersMatthias Clasen2022-10-051-1/+1
| | | | | Improve the consistency of our private header naming, by add 'private' to a bunch of them.
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+0
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-267/+89
| | | | | | | | 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
* texttag: Correct typoMaximiliano Sandoval R2022-04-041-1/+1
| | | | Does not generate a gir docstring without it.
* textview: Implement new pango attributesnew-pango-attributesMatthias Clasen2021-08-251-0/+82
| | | | Implement the word and sentence attributes.
* Implement text transforms for GtkTextViewMatthias Clasen2021-08-221-0/+40
| | | | | Add a property to GtkTextTag and do all the legwork to translate it to the Pango attribute.
* textview: Add line height plumbingMatthias Clasen2021-08-221-0/+36
| | | | | | This adds a line-height property to GtkTexttag and a line_height field to GtkTextAttributes, and translates it to a pango attribute.
* docs: Reduce redundancyMatthias Clasen2021-05-201-1/+1
| | | | | | | | 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.
* introspection: Stop using allow-noneMatthias Clasen2021-05-201-1/+1
| | | | | allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.
* textbtree: Return tags in a GPtrArrayMatthias Clasen2021-04-041-3/+2
| | | | | | One of the callers prefers that, it lets us avoid copying the array in one place, and generally makes for better code.
* texttag: Just use qsortMatthias Clasen2021-04-041-47/+3
| | | | No point in trying to optimize this.
* texttag: A few typo fixesMatthias Clasen2021-03-191-3/+3
|
* text tag: Typo fixMatthias Clasen2021-03-181-1/+1
|
* texttag: Convert docsMatthias Clasen2021-03-111-73/+243
|
* docs: Clean up the first paragraph for various symbolsEmmanuele Bassi2021-03-111-0/+2
| | | | | The documentation engine will use the first paragraph as the summary for a type or constant.
* *: Fix spelling mistakes found by codespellBjörn Daase2020-08-211-2/+2
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-3/+3
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-6/+6
|
* Drop pango version checksMatthias Clasen2020-06-061-18/+0
| | | | | We are requiring pango 1.45.0 now, so no need to Keep these ifdefs in the code any longer.
* Make overline support conditionalMatthias Clasen2020-03-211-33/+51
| | | | | | The ci image does not have Pango 1.45, so for the time being, make the overline support conditional on Pango being new enough.
* texttag: Support overline and hyphenation controlMatthias Clasen2020-03-201-0/+194
| | | | | | | | 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.
* texttag: avoid use of g_signal_emit_by_name()Christian Hergert2019-09-041-4/+2
| | | | | This avoids looking up the signal by name and instead uses the saved signal identifier from gtktexttagtable.c
* texttag: Replace gtk3-demo reference with gtk4-demoMohammed Sadiq2018-11-281-1/+1
|
* The big versioning cleanupMatthias Clasen2018-02-061-28/+0
| | | | | | | 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.
* gtktexttag: Remove GtkTextTag::event and gtk_text_tag_event()Benjamin Otte2017-11-111-70/+0
| | | | | | 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.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-33/+31
| | | | | | | | | | | | | | | | | | | 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.
* Use Unicode in translatable stringsPiotr Drąg2016-12-191-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772371
* Use GdkRGBA for text attributesMatthias Clasen2016-11-011-67/+36
| | | | | | 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.
* Remove some more GdkColor propertieswip/baedert/boxTimm Bäder2016-10-201-13/+0
|
* button: Fix icon-name implementationTimm Bäder2016-10-201-93/+0
|
* Fix a few GtkTextTag:*-gdk referencesTimm Bäder2016-10-161-4/+0
|
* Remove some deprecated GdkColor style propertiesTimm Bäder2016-10-161-47/+0
|
* text tag: Add a va marshaller to ::eventMatthias Clasen2016-04-191-0/+3
|
* Typo fixesMatthias Clasen2016-03-101-1/+1
| | | | Fix s/occurence/occurrence in many places.
* texttag: add gtk_text_tag_changed()Sébastien Wilmet2015-10-031-13/+39
| | | | | | | The function is useful for a GtkTextTag subclass that adds new properties. https://bugzilla.gnome.org/show_bug.cgi?id=755416
* Use stupid quotes instead of dumb quotesMatthias Clasen2015-09-231-3/+3
| | | | | | Following a similar change in GLib a while ago. 'bla' may by stupid, but it looks less dumb than `bla'.
* GtkTextView: Support font featuresMatthias Clasen2015-07-291-1/+41
| | | | | Add a ::font-features attribute to GtkTextTag, and support font features when inserting Pango markup into a text buffer.
* textview: Fix "Since" versions after backportRico Tzschichholz2015-03-251-4/+4
| | | | | Fix for 28063ee2e42e7ce47b7bd5326f2d53875a377d57 which got cherry-picked to 3.16
* Fix a minor typo in translatable stringPiotr Drąg2015-03-231-2/+2
|
* textview: add support for underline and strikethrough colorsChristian Hergert2015-03-171-1/+178
| | | | | | | | | | | | | | | | | | | | 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
* GtkTextTag: Add two missing property set casesMatthias Clasen2014-12-051-0/+8
| | | | | These were overlooked when adding ::fallback and ::letter-spacing recently.
* GtkTextView: Add fallback and letter-spacing supportMatthias Clasen2014-12-041-0/+72
| | | | | | | 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-3/+7
| | | | | 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-3/+3
| | | | Instead of Return value:
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: Use markup for linksWilliam Jon McCann2014-02-071-2/+3
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-4/+4
|
* docs: don't use <application> tagsWilliam Jon McCann2014-02-041-1/+1
|
* Doc: small fixes in GtkTextViewSébastien Wilmet2013-09-141-2/+2
| | | | | | | | | | | | | 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
* doc: Fix typosVolker Sobek2013-08-201-2/+2
| | | | | | Fix two typos in gtk/gtktexttag.c. https://bugzilla.gnome.org/show_bug.cgi?id=706335