Skip to content

Commit

Permalink
Make cursor in textview visible
Browse files Browse the repository at this point in the history
After setting the text cursor colour in sugar-artwork, make
it visible in the toolkit

Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>
  • Loading branch information
chimosky authored and quozl committed Jan 22, 2024
1 parent d1d839b commit ddae2f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sugar3/activity/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def __init__(self, activity, **kwargs):
2 * style.GRID_CELL_SIZE)
sw.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
self._text_view = Gtk.TextView()
self._text_view.set_cursor_visible(True)
self._text_view.set_left_margin(style.DEFAULT_PADDING)
self._text_view.set_right_margin(style.DEFAULT_PADDING)
self._text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
Expand Down

0 comments on commit ddae2f3

Please sign in to comment.