diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-10-11 14:39:17 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-10-11 14:39:17 +0000 |
commit | a07a5ecba7c1a6cc3c726d0529f30f75a32989ed (patch) | |
tree | 4420219545054692aceef5b7b97f68071620611c /gtk/gtktextsegment.h | |
parent | 8ad0abb867dd326d3436f484588eaf70e0634435 (diff) | |
download | gtk+-a07a5ecba7c1a6cc3c726d0529f30f75a32989ed.tar.gz |
Try to match an off toggle here with the matching on toggle if it
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.
Diffstat (limited to 'gtk/gtktextsegment.h')
-rw-r--r-- | gtk/gtktextsegment.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextsegment.h b/gtk/gtktextsegment.h index def6e25852..691147b08c 100644 --- a/gtk/gtktextsegment.h +++ b/gtk/gtktextsegment.h @@ -158,8 +158,10 @@ GtkTextLineSegment *_gtk_char_segment_new (const gchar *text guint len); GtkTextLineSegment *_gtk_char_segment_new_from_two_strings (const gchar *text1, guint len1, + guint chars1, const gchar *text2, - guint len2); + guint len2, + guint chars2); GtkTextLineSegment *_gtk_toggle_segment_new (GtkTextTagInfo *info, gboolean on); |