diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-03-07 02:06:33 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-03-07 02:06:33 +0000 |
commit | 5fea1b2e79f30a1b91ff94221bcb3d1129267355 (patch) | |
tree | 28f8cd8dc661b5aa8314fbc240fa3024a83c4700 | |
parent | 440289403e0b3429fc1f429b7b40aec8215c40d2 (diff) | |
download | gdk-pixbuf-5fea1b2e79f30a1b91ff94221bcb3d1129267355.tar.gz |
Take cursor width into account when calculating the area to be
2006-03-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (text_window_invalidate_cursors): Take
cursor width into account when calculating the area to
be invalidated. (#333377, #323401 Steve Frécinaux)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 4 | ||||
-rw-r--r-- | gtk/gtktextview.c | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2006-03-06 Matthias Clasen <mclasen@redhat.com> + * gtk/gtktextview.c (text_window_invalidate_cursors): Take + cursor width into account when calculating the area to + be invalidated. (#333377, #323401 Steve Frécinaux) + * gtk/gtkmain.c (post_parse_hook): Set error when returning FALSE. (#333268, Paolo Maggi, Christian Persch) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 59bdbcd37..7230f3925 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2006-03-06 Matthias Clasen <mclasen@redhat.com> + * gtk/gtktextview.c (text_window_invalidate_cursors): Take + cursor width into account when calculating the area to + be invalidated. (#333377, #323401 Steve Frécinaux) + * gtk/gtkmain.c (post_parse_hook): Set error when returning FALSE. (#333268, Paolo Maggi, Christian Persch) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 95ea6f299..6ab0a0144 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -7462,6 +7462,8 @@ text_window_invalidate_cursors (GtkTextWindow *win) stem_width = strong.height * cursor_aspect_ratio + 1; arrow_width = stem_width + 1; + strong.width = stem_width; + /* round up to the next even number */ if (stem_width & 1) stem_width++; @@ -7482,6 +7484,8 @@ text_window_invalidate_cursors (GtkTextWindow *win) stem_width = weak.height * cursor_aspect_ratio + 1; arrow_width = stem_width + 1; + weak.width = stem_width; + /* round up to the next even number */ if (stem_width & 1) stem_width++; |