1. 15 Nov, 2007 2 commits
    • Yevgen Muntyan's avatar
      new functions _gtk_text_btree_get_insert() and · abad58b0
      Yevgen Muntyan authored
      2007-11-15  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	* gtk/gtktextbtree.h:
      	* gtk/gtktextbtree.c: new functions _gtk_text_btree_get_insert()
      	and _gtk_text_btree_get_selection_bound() (#497102).
      	* gtk/gtktextbuffer.c (gtk_text_buffer_get_insert),
      	(gtk_text_buffer_get_selection_bound): use them here instead of
      	hash table lookup.
      
      
      svn path=/trunk/; revision=18996
      abad58b0
    • Yevgen Muntyan's avatar
      sort returned tags array by tags priority (#497102). · 921da326
      Yevgen Muntyan authored
      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
      921da326
  2. 26 Oct, 2007 1 commit
  3. 01 Jun, 2007 1 commit
    • Yevgen Muntyan's avatar
      Avoid recreating pangolayouts in GtkTextView on cursor movement (#435405, · 8f4aa8c6
      Yevgen Muntyan authored
      2007-06-01  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	Avoid recreating pangolayouts in GtkTextView on cursor movement
      	(#435405, Behdad Esfahbod).
      
      	* gtk/gtktextlayout.c:
      	* gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(),
      	and functions gtk_text_layout_invalidate_cursors() and
      	gtk_text_layout_cursors_changed(), to use when invalidation is due
      	to moved marks or changed selection.
      
      	* gtk/gtktextbtree.c:
      	* gtk/gtktextbtree.h: use what's appropriate when invalidating layout.
      
      	* gtk/gtk.symbols: add new functions.
      
      	* README.in: added a note about changed GtkTextLayout API.
      
      
      svn path=/trunk/; revision=18000
      8f4aa8c6
  4. 26 May, 2007 1 commit
    • Matthias Clasen's avatar
      Allow to separate GtkTextMark creation from buffer insertion. (#132818, · 6ac30db0
      Matthias Clasen authored
      2007-05-25  Matthias Clasen  <mclasen@redhat.com>
      
              Allow to separate GtkTextMark creation from buffer insertion.
              (#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
      
              * gtk/gtktextmarkprivate.h:
              * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to
              create a GtkTextMark.
      
              * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New
              function to add an existing mark to a buffer.
      
              * gtk/gtktextbtree.c: Allow adding existing marks.
      
              * gtk/gtk.symbols: Add new functions.
      
              * tests/testtextbuffer.c: Add some tests for new mark
              functionality.
      
      
      svn path=/trunk/; revision=17922
      6ac30db0
  5. 15 Feb, 2007 1 commit
  6. 07 Nov, 2006 1 commit
  7. 14 May, 2006 1 commit
  8. 03 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Fix a warning. · 8de7c8b7
      Matthias Clasen authored
      
      	* gtk/gtktextlayout.c: Fix a warning.
      
      	* gtk/gtktextsegment.h:
      	* gtk/gtktextsegment.c:
      	* gtk/gtktextchild.c:
      	* gtk/gtktextbtree.c:
      	* gtk/gtktextmark.c:
      	* gtk/gtktexttypes.h: Make the segment class pointers const.
      
      	* gtk/gtktextbufferserialize.c: Make parser struct const.
      
      	* gtk/gtkuimanager.c: Make parser struct const.
      8de7c8b7
  9. 22 Feb, 2006 2 commits
  10. 27 Dec, 2005 4 commits
  11. 12 Dec, 2005 1 commit
  12. 02 Nov, 2005 1 commit
  13. 26 Oct, 2005 1 commit
  14. 11 Oct, 2005 1 commit
    • Matthias Clasen's avatar
      Try to match an off toggle here with the matching on toggle if it · a07a5ecb
      Matthias Clasen authored
      2005-10-11  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off
      	toggle here with the matching on toggle if it immediately follows.
      	This is a common case, and handling it here prevents quadratic blowup
      	in cleanup_line() below.  (#317125)
      
      	* gtk/gtktextsegment.h:
      	* gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
      	the character counts into this function instead of computing them
      	again.
      a07a5ecb
  15. 13 Sep, 2005 1 commit
  16. 09 Jun, 2005 1 commit
  17. 26 May, 2005 1 commit
  18. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      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.
      cca8dd63
  19. 30 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Redisplay the new selection. · 73821182
      Matthias Clasen authored
      2004-10-30  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
      	the new selection.
      
      	* gtk/gtktextview.c (gtk_text_view_select_all): Use
      	gtk_text_buffer_select_range().
      73821182
  20. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      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
      3612aee5
  21. 23 Jul, 2004 1 commit
  22. 19 Apr, 2004 1 commit
  23. 06 Mar, 2004 1 commit
  24. 01 Mar, 2004 2 commits
    • Michael Natterer's avatar
      removed underscores from calls to gtk_text_btree_resolve_bidi(). · ebd7d168
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* gtk/gtktextbtree.c: removed underscores from calls to
      	gtk_text_btree_resolve_bidi().
      ebd7d168
    • Owen Taylor's avatar
      Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextView · 8130a8a2
      Owen Taylor authored
      Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Dov Grobgeld to implement auto-bidi-direction
              for GtkTextView (#118543)
      
              * gtk/gtktextbtree.[ch]: Resolve bidi base direction
              for each line by propagating backwards/forwards as
              necessary.
      
              * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the
              bidi base direction for the ;ine with the cursor from
              the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
      
      Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
              based on a patch from Dov Grobgeld. (#118540)
      8130a8a2
  25. 06 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Actually free the lists. Pointed out by Morten Welinder. · 738eeba8
      Matthias Clasen authored
      Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_check):
      	* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
      	* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
      	Actually free the lists. Pointed out by Morten Welinder.
      738eeba8
  26. 27 May, 2003 1 commit
    • Matthias Clasen's avatar
      Remove dubious bitfields of unspecified signedness. (#112919, Morten · 83c626bb
      Matthias Clasen authored
      2003-05-27  Matthias Clasen  <maclas@gmx.de>
      
      	* io-wbmp.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)gdk-p
      
      	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
      	of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
      
      	* gtk/gtkwindow-decorate.c:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtkdnd.c:
      	* gdk/win32/gdkwindow-win32.h:
      	* gdk/linux-fb/gdkprivate-fb.h:
      	* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)
      
      	* gtk/queryimmodules.c (escape_string):
      	* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
      	* gtk/gtksettings.c (_gtk_settings_parse_convert):
      	* gtk/gtkrc.c (gtk_rc_parse_assignment):
      	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
      	* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
      	occurances of g_string_new ("") by g_string_new (NULL). (#106975,
      	Morten Welinder)
      83c626bb
  27. 20 Feb, 2003 1 commit
    • Matthias Clasen's avatar
      Check if line_ancestor_parent is NULL. (#102711, Manuel Clos) · 452de5d6
      Matthias Clasen authored
      2003-02-20  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
      	Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
      
      	* gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
      	(gtk_text_view_update_adjustments): Make sure cursor stays visible
      	during horizontal scrolling.  (#75270)
      452de5d6
  28. 06 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Implement a utility function proposed in #102534: · bc70dc94
      Matthias Clasen authored
      2003-01-06  Matthias Clasen  <maclas@gmx.de>
      
      	Implement a utility function proposed in #102534:
      
      	* gtk/gtktextbtree.h:
      	* gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
      	(_gtk_text_btree_place_cursor): Now a simple wrapper around
      	_gtk_text_btree_select_range().
      
      	* gtk/gtktextbuffer.h:
      	* gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
      	(gtk_text_buffer_place_cursor): Now a simple wrapper around
      	gtk_text_buffer_select_range().
      bc70dc94
  29. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · ac770765
      Manish Singh authored
      Thu Oct 10 14:41:05 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c
              gtk/gtktextlayout.c gtk/gtktextmark.c gtk/gtktexttag.[ch]
              gtk/gtktexttagtable.c gtk/gtktextutil.c gtk/gtktextview.[ch]:
              Deprecation cleanup
      ac770765
  30. 23 Sep, 2002 1 commit
  31. 10 Jul, 2002 1 commit
  32. 09 Jun, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak child_anchor_table. (#84425) · 2c867d1e
      Matthias Clasen authored
      	* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
      	child_anchor_table.  (#84425)
      
      	* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
      	one_display_cache.  (#84424)
      2c867d1e
  33. 30 Apr, 2002 1 commit
    • Havoc Pennington's avatar
      assign something to "prev" so that removing tag info succeeds. Part of · 271018df
      Havoc Pennington authored
      2002-04-30  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): assign
      	something to "prev" so that removing tag info succeeds.
      	Part of #77301
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_unref): reorder so that it
      	unrefs the tag table first, so that the btree is in a consistent
      	state when we're removing tags from it.
      
      	* gtk/gtktexttagtable.c (_gtk_text_tag_table_remove_buffer): strip
      	all tags in the tag table out of the buffer. #77301
      271018df
  34. 13 Feb, 2002 1 commit
    • Havoc Pennington's avatar
      just go ahead and flush all the first validate stuff if it hasn't been · a760ad80
      Havoc Pennington authored
      2002-02-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush
      	all the first validate stuff if it hasn't been done, presumably
      	someone called process_updates at a weird time.
      
      	* tests/testtext.c (do_apply_colors): terminate on >= end, not >
      	end, avoids infinite loop when end is at the end of the buffer.
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
      	line data, we were adding it to the wrong line ("line" instead of
      	"start_line")
      a760ad80