diff options
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 6 |
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++; |