summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtktextlayout.c29
6 files changed, 40 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 7617df1fc2..cc0d943217 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-16 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
+ (totally_invisible_line): Fix an incorrect optimization which
+ caused invisible paragraphs to be occasionally misrendered.
+
Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c: Set the double click speed from
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 7617df1fc2..cc0d943217 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+2003-01-16 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
+ (totally_invisible_line): Fix an incorrect optimization which
+ caused invisible paragraphs to be occasionally misrendered.
+
Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c: Set the double click speed from
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 7617df1fc2..cc0d943217 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+2003-01-16 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
+ (totally_invisible_line): Fix an incorrect optimization which
+ caused invisible paragraphs to be occasionally misrendered.
+
Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c: Set the double click speed from
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 7617df1fc2..cc0d943217 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+2003-01-16 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
+ (totally_invisible_line): Fix an incorrect optimization which
+ caused invisible paragraphs to be occasionally misrendered.
+
Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c: Set the double click speed from
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 7617df1fc2..cc0d943217 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+2003-01-16 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
+ (totally_invisible_line): Fix an incorrect optimization which
+ caused invisible paragraphs to be occasionally misrendered.
+
Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtksettings.c: Set the double click speed from
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 9f31aee78e..ddfcc7fad8 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -1035,25 +1035,16 @@ totally_invisible_line (GtkTextLayout *layout,
GtkTextLineSegment *seg;
int bytes = 0;
- /* If we have a cached style, then we know it does actually apply
- * and we can just see if it is invisible.
+ /* Check if the first char is visible, if so we are partially visible.
+ * Note that we have to check this since we don't know the current
+ * invisible/noninvisible toggle state; this function can use the whole btree
+ * to get it right.
*/
- if (layout->one_style_cache &&
- !layout->one_style_cache->invisible)
+ _gtk_text_btree_get_iter_at_line (_gtk_text_buffer_get_btree (layout->buffer),
+ iter, line, 0);
+
+ if (!_gtk_text_btree_char_is_invisible (iter))
return FALSE;
- /* Without the cache, we check if the first char is visible, if so
- * we are partially visible. Note that we have to check this since
- * we don't know the current invisible/noninvisible toggle state; this
- * function can use the whole btree to get it right.
- */
- else
- {
- _gtk_text_btree_get_iter_at_line (_gtk_text_buffer_get_btree (layout->buffer),
- iter, line, 0);
-
- if (!_gtk_text_btree_char_is_invisible (iter))
- return FALSE;
- }
bytes = 0;
seg = line->segments;
@@ -2138,13 +2129,13 @@ gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout,
}
/**
- * gtk_text_layout_get_cursor_locations
+ * gtk_text_layout_get_cursor_locations:
* @layout: a #GtkTextLayout
* @iter: a #GtkTextIter
* @strong_pos: location to store the strong cursor position (may be %NULL)
* @weak_pos: location to store the weak cursor position (may be %NULL)
*
- * Given an iterator within a text laout, determine the positions that of the
+ * Given an iterator within a text layout, determine the positions of the
* strong and weak cursors if the insertion point is at that
* iterator. The position of each cursor is stored as a zero-width
* rectangle. The strong cursor location is the location where