summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* Fixes #132975.Federico Mena Quintero2004-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Federico Mena Quintero <federico@ximian.com> Fixes #132975. * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL, not FALSE. (gtk_file_system_volume_render_icon): Likewise. * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path): Likewise. * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0, not FALSE. * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not FALSE. * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0, not FALSE. (gtk_text_iter_get_bytes_in_line): Likewise. * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): Likewise. * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not 0.
* removed redundant calls to g_object_notify().Sven Neumann2003-03-131-2/+2
| | | | | | | | | | | | | 2003-03-13 Sven Neumann <sven@gimp.org> * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property): removed redundant calls to g_object_notify(). (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see bug #108236. * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char) (_gtk_text_iter_get_segment_byte): return 0, not NULL (these functions return an integer value).
* Trivial cleanups (bug #107664)Matthias Clasen2003-03-081-6/+6
|
* Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS andMatthias Clasen2003-01-141-155/+227
| | | | | | | | | | | | * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and GTK_MOVEMENT_WORDS. * gtk/gtktextiter.c, gtk/gtktextiter.h: Add some variant movement functions which skip invisible chars, and do some cleanups. * gtk/gtk-sections.txt: Add new GtkTextIter functions.
* Make C-Down step through the sequence of paragraph ends (old behaviourMatthias Clasen2003-01-041-1/+4
| | | | | | | | | | | | | 2003-01-05 Matthias Clasen <maclas@gmx.de> * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make C-Down step through the sequence of paragraph ends (old behaviour included paragraph starts). (#80340, patch by Narayana Pattipati) * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle): Check for a tag toggle at the start iterator before calling gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel Elstner)
* Don't call gtk_text_iter_backward_sentence_start() if count is zero.Matthias Clasen2002-12-231-0/+3
| | | | | | | | | | | | 2002-12-23 Matthias Clasen <maclas@gmx.de> * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): Don't call gtk_text_iter_backward_sentence_start() if count is zero. (#99115) * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call move_cursor() even if the cursor hasn't moved, since it has the side effect of canceling the selection. (#81395, #98537, #9833)
* Put into #ifdef DO_BLINK to avoid an unused static function. (#97965)Matthias Clasen2002-11-081-1/+6
| | | | | | | | | | | | | | | | | | | | * tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to avoid an unused static function. (#97965) * gtk/gtktextiter.c (backward_line_leaving_caches_unmodified): * gtk/gtkstyle.c (radio_aa_bits): (draw_spin_entry_shadow): #if-0-out unused static functions and variables. (#97965) * gtk/gtktextview.c (text_window_get_allocation): * gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size): (gtk_color_selection_get_palette_color): (gtk_color_selection_unset_palette_color): Remove unused static functions. (#97965) * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_with_screen_hook): Fix doc comment.
* Minor documentation fixesSoren Sandmann2002-08-101-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
* Fix type names for GtkIconSet, GtkIconSource, GtkSelectionData, GtkBorder,Owen Taylor2002-06-131-1/+1
| | | | | | | | | | | | Thu Jun 13 19:41:56 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c gtk/gtktextiter.c gtk/gtktexttag.c gtk/gtktreemodel.c gtk/gtkwidget.c: Fix type names for GtkIconSet, GtkIconSource, GtkSelectionData, GtkBorder, GtkTextIter, GtkTextAttributes, GtkTreePath, GtkTreeIter, GtkRequisition, which were all registered as GtkType*. (#84634, James Henstridge; patch from Jonathan Blandford.)
* A bunch of trivial doc fixes.Matthias Clasen2002-04-201-2/+3
|
* Switch style of stamp file usage.Owen Taylor2002-03-021-0/+13
| | | | | | | | | | | | | | | | | | | | | | Sat Mar 2 13:26:58 2002 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am: Switch style of stamp file usage. * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported enumeration/fags TYPE variables over to macros for get_type() functions, for lazy definition and to get rid of expensive relocations. * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch] gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch] gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type definitions over manually coded get_type() functions. * gtk/gtk.def: Updates for above * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}: Remove from CVS, no longer used. * configure.in: Remove checks for awk.
* isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>Darin Adler2002-02-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace * gdk/x11/gdkim-x11.c: Remove gdki8n.h include. * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include. * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include. * gtk/fnmatch.c: Remove <ctype.h> include. * gtk/gtkaccelgroup.c: Remove <ctype.h> include. * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper -> g_unichar_toupper, toupper -> g_unichar_totile * gtk/gtkbindings.c: Remove <ctype.h> include. * gtk/gtkfontsel.c: Remove <ctype.h> include. * gtk/gtkiconfactory.c: Remove <ctype.h> include. * gtk/gtkinputdialog.c: Remove <ctype.h> include. * gtk/gtklabel.c: Remove <ctype.h> include. * gtk/gtkmain.c: Remove <ctype.h> include. * gtk/gtkmenu.c: Remove <ctype.h> include. * gtk/gtkoldeditable.c: Remove <ctype.h> include. * gtk/gtkrc.c: Remove <ctype.h> include. * gtk/gtktextbtree.c: Remove <ctype.h> include. * gtk/gtktextiter.c: Remove <ctype.h> include. * gtk/gtktextsegment.c: Remove <ctype.h> include.
* propagate exposes to no window children not in the buffer window.Havoc Pennington2002-01-021-1/+3
| | | | | | | | | | | | | | | | | 2002-01-01 Havoc Pennington <hp@pobox.com> * gtk/gtktextview.c (gtk_text_view_expose_event): propagate exposes to no window children not in the buffer window. (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab - is this the right way to do it? (gtk_text_view_focus): add focus method, just chains up for now, I'm not sure why the GtkContainer implementation doesn't work * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill in the text line for the child anchor segment * tests/testtext.c (do_add_focus_children): add another test example (to put focusable buttons into the widget)
* fix to use ensure_byte_offsets not ensure_char_offsets, patch from PadraigHavoc Pennington2001-12-311-2/+6
| | | | | | | | 2001-12-31 Havoc Pennington <hp@pobox.com> * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix to use ensure_byte_offsets not ensure_char_offsets, patch from Padraig O'Briain bug #67356
* More precise documentation about underscores and mnemonics. (#66380)Matthias Clasen2001-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtklabel.c (gtk_label_new_with_mnemonic), gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise documentation about underscores and mnemonics. (#66380) * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix cyclic reference in docs. * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation of default value. (#65402) * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): Markup fixes. * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c, gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c, gdk-pixdata.c: Markup fixes. * gtk/text_widget.sgml: More precise wording. (#63388) * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs. * gtk/resources.sgml: Fix markup of mail URLs. * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes. * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element): Expand documentation. (#60471) * gtk/tmpl/gtkmain.sgml: Remove misleading information about gtk_set_locale(). (#65758)
* Fix some warnings.Darin Adler2001-12-151-1/+2
| | | | | | | | | | | * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *). * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local. * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local. * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment): Restructure loop to get rid of uninitialized variable warning. Also gives a tiny efficiency gain.
* assertion here that we were at the end iterator was not correct; changeHavoc Pennington2001-11-291-3/+6
| | | | | | | | 2001-11-29 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment): assertion here that we were at the end iterator was not correct; change code to move us to the end iterator. bug #65731
* fix Control-E so it doesn't move to a new line each time you press itHavoc Pennington2001-11-141-2/+2
| | | | | | | | | | 2001-11-14 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so it doesn't move to a new line each time you press it * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix return value, #62987
* bulk of the tests were commented out, oops.Havoc Pennington2001-11-141-11/+23
| | | | | | | | | | | | | | 2001-11-14 Havoc Pennington <hp@redhat.com> * tests/testtextbuffer.c (main): bulk of the tests were commented out, oops. * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this function work, should resolve #63426 (gtk_text_iter_ends_line): return TRUE for the end iterator * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of a couple things that might get cached in here.
* Mass fixing of trivial doc bugs. (#63544, #57007, #64141, #63472, #57108,Matthias Clasen2001-11-101-46/+43
| | | | | | | | | | | | | | * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c, gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs. (#63544, #57007, #64141, #63472, #57108, #60818, #61562) * gtk/tmpl/gtkaccellabel.sgml, gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkentry.sgml, gtk/tmpl/gtkhscrollbar.sgml, gtk/tmpl/gtkvscrollbar.sgml, gtk/tmpl/gtktoolbar.sgml, gtk/tmpl/gtkdialog.sgml, gtk/tmpl/gtkstatusbar.sgml: Mass fixing of trivial doc bugs. (#55579, #56760, #58769, #55918, #64154, #60422, #54697)
* Fix docs to say previous instead of next.Anders Carlsson2001-10-271-2/+2
| | | | | | | | | 2001-10-27 Anders Carlsson <andersca@gnu.org> * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): Fix docs to say previous instead of next. (gtk_text_iter_backward_word_start): Likewise. This fixes bug #62980.
* if we move to the front of a segment, use the "slow" technique for movingHavoc Pennington2001-10-241-1/+6
| | | | | | | | | | | | 2001-10-24 Havoc Pennington <hp@pobox.com> * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to the front of a segment, use the "slow" technique for moving backward, so we don't mess up the any_segment field in the iter. Fixes #57707 * tests/testtextbuffer.c: add code to detect #57707, to avoid regression
* handle case where offset == 0 and char_len == 0, bug #61729Havoc Pennington2001-10-231-1/+1
| | | | | | | 2001-10-23 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (test_log_attrs): handle case where offset == 0 and char_len == 0, bug #61729
* fix return value, #61714 (Vitaly Tishkov)Havoc Pennington2001-10-231-6/+12
| | | | | | | | | | | | 2001-10-23 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix return value, #61714 (Vitaly Tishkov) (gtk_text_iter_backward_sentence_starts): ditto (gtk_text_iter_backward_word_starts): ditto (gtk_text_iter_forward_word_ends): ditto (gtk_text_iter_forward_sentence_ends): ditto (gtk_text_iter_backward_cursor_positions): ditto