summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index d2af4bf082..8fa082a6b3 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -6628,7 +6628,11 @@ draw_insertion_cursor (GtkWidget *widget,
gint offset;
g_return_if_fail (direction != GTK_TEXT_DIR_NONE);
-
+
+ /* When changing the shape or size of the cursor here,
+ * propagate the changes to gtktextview.c:text_window_invalidate_cursors().
+ */
+
gtk_widget_style_get (widget, "cursor-aspect-ratio", &cursor_aspect_ratio, NULL);
stem_width = location->height * cursor_aspect_ratio + 1;