summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-03-07 02:05:02 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-03-07 02:05:02 +0000
commit1f5c294851a009295c9d331110512e47324d09c0 (patch)
tree60d4d4282fbf2424b73cc1851dc70d2e6c37dfab /gtk/gtktextview.c
parentede969587570b85b93472e79f2ac7f7ce5f2e21a (diff)
downloadgtk+-1f5c294851a009295c9d331110512e47324d09c0.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)
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 922247aa33..8b4bec7512 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7479,10 +7479,12 @@ text_window_invalidate_cursors (GtkTextWindow *win)
gtk_widget_style_get (win->widget,
"cursor-aspect-ratio", &cursor_aspect_ratio,
NULL);
-
+
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++;
@@ -7503,6 +7505,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++;