summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: use ` instead of <literal>William Jon McCann2014-02-041-2/+2
|
* docs: don't use <emphasis>William Jon McCann2014-01-281-8/+8
| | | | It is a little heavy handed. The text can speak for itself.
* docs: use #*-struct instead of <structname>William Jon McCann2014-01-271-1/+1
|
* textiter: better document "tag" functionsSébastien Wilmet2013-06-301-12/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=703313
* textiter: doc precision for forward_search() and backward_search()Sébastien Wilmet2013-06-291-1/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=703313
* Document GtkTextSearchFlagsSébastien Wilmet2013-06-251-11/+1
| | | | | | | Move the doc about the flags from gtk_text_iter_forward_search() to the enum. https://bugzilla.gnome.org/show_bug.cgi?id=390048
* textiter: bug fix in forward_search() and backward_search()Sébastien Wilmet2013-06-241-5/+4
| | | | | | | | | | | | | | | | When the search is case sensitive, g_utf8_normalize() is not called, so the skip_decomp argument of the function forward_chars_with_skipping() must be FALSE. To verify that, when searching "éb", the count parameter of forward_chars_with_skipping() have a different value: - case sensitive: count = 2 - case insensitive: count = 3 (g_utf8_normalize() has been called) The commit adds unit tests that didn't pass before, and that now pass (without known regression, obviously). https://bugzilla.gnome.org/show_bug.cgi?id=702977
* Fix gtk_text_iter_forward_to_tag_toggle() for end iterSébastien Wilmet2013-06-201-0/+3
| | | | | | | | | | The function must return TRUE only if there is a tag toggle _after_ the iter, not _at_ the iter. So for the end iter, the function must always return FALSE. Add also unit tests for gtk_text_iter_forward_to_tag_toggle(). https://bugzilla.gnome.org/show_bug.cgi?id=691266
* Improve doc of gtk_text_iter_forward_search()Sébastien Wilmet2013-06-201-1/+1
| | | | | | | | It was not possible to know if the @limit was for @match_start or @match_end. It was documented for backward_search(), but not for forward_search(). https://bugzilla.gnome.org/show_bug.cgi?id=390048
* Small API doc fixesSébastien Wilmet2013-03-161-4/+4
| | | | | | For gtk_text_iter_get_char(), due to the "Returns" at the beginning of the description, the description was not visible. So the first sentence has been reworded.
* Fix malformed doc commentsMatthias Clasen2012-04-121-1/+1
| | | | | Most of these are forgotten :'s and similar details which gtk-doc now warns about.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Added gtk_text_iter_assign APIJesse van den Kieboom2011-08-151-0/+22
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=645258
* Don't use deprecated G_UNICODE_COMBINING_MARKAndre Klapper2011-07-221-1/+1
|
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Add case insensitive to GtkTextIter. Fixes bug #61852.Ignacio Casal Quinteiro2010-11-021-55/+342
| | | | | This code has been taken from GtkSourceView so also kudos to Paolo Maggi and Paolo Borelli for helping with this patch.
* Fix backward search bug exposed by the unit testPaolo Borelli2010-11-021-0/+2
| | | | | When searching with multiple lines first_line_start/end were initialized to the last line start/end iters
* Tons of transfer annotationsMatthias Clasen2010-09-211-5/+5
|
* Replace gtk_debug_flags with getter and setter functionsTor Lillqvist2010-09-081-1/+1
| | | | | | Preferrably should be made just into a local variable for libgtk like _gdk_debug_flags for libgdk. But for now used by gtk/tests/textbuffer.c and modules/printbackends/cups/gtkprintbackendcups.c.
* Use G_DEFINE_BOXED_TYPEChristian Persch2010-08-181-12/+3
| | | | Bug #627214.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix annotation of gtk_text_iter_(forward/backward)_search.Ignacio Casal Quinteiro2010-06-241-4/+4
|
* Move documentation to inline comments: GtkTextIterJavier Jardón2010-05-131-0/+12
|
* [annotations] Add allow-noneJohan Dahlin2010-02-191-3/+3
| | | | | | | | 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
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-21/+21
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* 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
* Fix an aliasing problem. (#347585, Ed Catmur)Matthias Clasen2007-11-221-1/+1
| | | | | | | | | 2007-11-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c: Fix an aliasing problem. (#347585, Ed Catmur) svn path=/trunk/; revision=19024
* sort returned tags array by tags priority (#497102).Yevgen Muntyan2007-11-151-6/+0
| | | | | | | | | | | | 2007-11-15 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtktextbtree.c (_gtk_text_btree_get_tags): sort returned tags array by tags priority (#497102). * gtk/gtktextiter.c (gtk_text_iter_get_tags), (gtk_text_iter_get_attributes): * gtk/gtktextlayout.c (get_tags_array_at_iter): and do not sort it here. svn path=/trunk/; revision=18995
* Improve the docs. (#486155, Owen Taylor)Matthias Clasen2007-10-161-4/+4
| | | | | | | | | | | 2007-10-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_line): Improve the docs. (#486155, Owen Taylor) svn path=/trunk/; revision=18914
* Internalize some strings, pointed out by Damon Chaplin.Matthias Clasen2007-04-271-1/+2
| | | | | | | | | | | | | | | | 2007-04-27 Matthias Clasen <mclasen@redhat.com> * gtkassistant.c: * gtkiconfactory.c: * gtkiconview.c: * gtkpapersize.c: * gtkrecentmanager.c: * gtktextiter.c: Internalize some strings, pointed out by Damon Chaplin. svn path=/trunk/; revision=17661
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-4/+2
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-37/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* handle the case of \r and \n split across lines. Bug #337022. add unitPaolo Borelli2006-04-051-2/+15
| | | | | | | | 2006-04-05 Paolo Borelli <pborelli@katamail.com> * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle the case of \r and \n split across lines. Bug #337022. * tests/testtextbuffer.c: add unit test.
* Fix macro declarationMatthias Clasen2006-02-231-1/+1
| | | | | | | | 2006-02-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c: Fix macro declaration * gtk/gtkaboutdialog.c: Remove an accidentally included function.
* Minor optimizations. (#332059, Arnaud Charlet)Matthias Clasen2006-02-221-1/+1
| | | | | | | 2006-02-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c: * gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
* Use the slice allocator for many small allocations.Matthias Clasen2006-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccelmap.c: * gtk/gtkactiongroup.c: * gtk/gtkdialog.c: * gtk/gtkfilesystemunix.c: * gtk/gtkgc.c: * gtk/gtkkeyhash.c: * gtk/gtkplug.c: * gtk/gtktextiter.c: * gtk/gtktextlayout.c: * gtk/gtkuimanager.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: * gtk/gtkxembed.c: Use the slice allocator for many small allocations. * gtk/gtkcolorsel.c: * gtk/gtktreeview.c: Use IPN. * gtk/gtkwidget.c: Remove an unused field from the AccelPath struct.
* Speed this function up, using the fact that visibility is constant acrossMatthias Clasen2005-12-121-28/+36
| | | | | | | | 2005-12-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): Speed this function up, using the fact that visibility is constant across segments. (#321548, Paolo Borelli)
* Speed up stepping backwards. (#320638, Larry Ewing, Paolo Borelli)Matthias Clasen2005-12-121-6/+8
| | | | | | | | 2005-12-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up stepping backwards. (#320638, Larry Ewing, Paolo Borelli)
* Make limit an inclusive boundary. (#321299)Matthias Clasen2005-11-141-1/+1
| | | | | | | 2005-11-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make limit an inclusive boundary. (#321299)
* Replace manual offset calculations by g_utf8_offset_to_pointer().Matthias Clasen2005-11-021-9/+4
| | | | | | | | | 2005-11-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace manual offset calculations by g_utf8_offset_to_pointer(). (#320360, Paolo Borelli)
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-3/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Fix a typo in the docs. (#314878, Guillaume Cottenceau)Matthias Clasen2005-08-311-1/+1
| | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): Fix a typo in the docs. (#314878, Guillaume Cottenceau)
* Make invisible text work a bit better (#66194, patch by JeroenMatthias Clasen2005-06-131-0/+156
| | | | | | | | | | | | | | | | | 2005-06-13 Matthias Clasen <mclasen@redhat.com> Make invisible text work a bit better (#66194, patch by Jeroen Zwartepoorte) * gtk/gtk.symbols: * gtk/gtktextiter.[hc]: Add function to move by visible lines. * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip invisible text when moving by paragraphs. * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually): Skip invisible lines here too.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+3
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Don't access attr[-1]. (#153628, Padraig O'Briain)Matthias Clasen2004-09-251-1/+4
| | | | | | | 2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0> * gtk/gtktextiter.c (inside_word_func): Don't access attr[-1]. (#153628, Padraig O'Briain)
* Count from the beginning of the line, not from the current position.Matthias Clasen2004-08-161-0/+4
| | | | | | | | | Mon Aug 16 01:03:08 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset): (gtk_text_iter_set_visible_line_index): Count from the beginning of the line, not from the current position. (#150101, Torsten Schoenfeld)
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>