summaryrefslogtreecommitdiff
path: root/gtk/gtktexttag.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-11/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Clarify docs of GtkTextTag -set properties a bitMatthias Clasen2013-02-031-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687825
* Document "set" properties a bitMatthias Clasen2012-05-261-0/+5
| | | | | | | Both GtkTextTag and GtkCellRenderer make use of "set" properties which are a bit special. Document this. https://bugzilla.gnome.org/show_bug.cgi?id=531319
* Deprecate all the public API that is using GdkColor structJavier Jardón2011-12-221-3/+19
|
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+0
| | | | and remove gtkmainprivate.h completely.
* Language improvementsRachid BM2011-08-101-4/+4
| | | | | Changed rgba to uppercase (Only in UI strings) Fixed the typo: tolevel -> toplevel
* Add a missing break statementMatthias Clasen2011-06-141-0/+1
|
* Remove outdated commentsMatthias Clasen2011-05-061-12/+10
| | | | Neither GdkColors nor GdkRGBAs are ever 'allocated' nowadays.
* Added Since 3.2 annotations for new GdkRGBA properties.Tristan Van Berkom2011-05-061-3/+16
|
* Fixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for ↵Tristan Van Berkom2011-05-061-30/+48
| | | | backwards compatability.
* Added GdkRGBA properties to GtkTextTag.Tristan Van Berkom2011-05-061-26/+166
| | | | | | | | | | | | 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.
* Fix a typoMatthias Clasen2011-01-151-1/+1
|
* Move GtkTextTag docs inlineMatthias Clasen2011-01-141-0/+16
|
* textview: Move text attributes code into its own .c fileBenjamin Otte2011-01-111-295/+0
|
* Move docs for gtkmain inlineMatthias Clasen2011-01-041-1/+1
| | | | | | | | At the same time, introduce a gtkmainprivate.h header and various other cleanups. Based on a patch by Tadej Borovšak. https://bugzilla.gnome.org/show_bug.cgi?id=617471
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-3/+5
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* gtktexttag: Move public members to private headerJavier Jardón2011-01-031-236/+256
| | | | And fix gail to not poke at GtkTextTag internals
* Use G_DEFINE_BOXED_TYPEChristian Persch2010-08-181-12/+3
| | | | Bug #627214.
* textview: remove GtkTextAttributes (un)realize codeBenjamin Otte2010-08-101-66/+0
| | | | It was unused (apart from a few assertion that indeed it was unused).
* API: Remove GtkTextTag's stipple propertiesBenjamin Otte2010-08-101-149/+0
| | | | | They seem pretty much unused and the only reason why GtkTextView uses a GdkPangoRenderer and not a PangoCairoRenderer.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Use g_value_dup_string instead.Hiroyuki Ikezoe2009-12-181-1/+1
| | | | | g_value_get_string and g_strdup should be replaced by g_value_dup_string.
* examples/gtkdial/gtkdial.c gdk/gdkapplaunchcontext.c gdk/gdkpango.cMichael Natterer2008-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.c * gdk/gdkapplaunchcontext.c * gdk/gdkpango.c * gtk/gtkcellrendererpixbuf.c * gtk/gtkcellrenderertext.c * gtk/gtkcellview.c * gtk/gtkcombobox.c * gtk/gtkfontsel.c * gtk/gtkinvisible.c * gtk/gtkliststore.c * gtk/gtktexttag.c * gtk/gtktexttagtable.c: remove dereferencing from some function pointers i missed before. svn path=/trunk/; revision=21089
* Bug 542523 - GtkTextTag should handle setting properties to NULLXavier Claessens2008-07-151-3/+9
| | | | | | | | | | | | 2008-07-15 Xavier Claessens <xclaesse@gmail.com> Bug 542523 - GtkTextTag should handle setting properties to NULL * gtk/gtktexttag.c (gtk_text_tag_set_property): Unset the color when setting it to NULL instead of displaying a warning. svn path=/trunk/; revision=20836
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Add a way to specify accumulative margins. (#344499, Nate Nielsen)Matthias Clasen2007-04-291-4/+52
| | | | | | | | | | | 2007-04-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtktexttag.[hc]: Add a way to specify accumulative margins. (#344499, Nate Nielsen) svn path=/trunk/; revision=17685
* Document the ::event signal (#420703).Ross Burton2007-03-211-1/+14
| | | | | | | | | 2007-03-21 Ross Burton <ross@burtonini.com> * gtk/gtktexttag.c: Document the ::event signal (#420703). svn path=/trunk/; revision=17547
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-32/+2
|
* Another oneMatthias Clasen2006-03-261-5/+1
|
* Initialize editable to TRUE. (gtk_text_tag_class_init): The default valueMatthias Clasen2006-01-061-7/+23
| | | | | | | | | | 2006-01-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable to TRUE. (gtk_text_tag_class_init): The default value for the direction property is GTK_TEXT_DIR_NONE. Add notes about the initial values of the font and language properties.