TextEdit set_line_gutter_icon
does not show an icon in projects
#88859
Labels
Milestone
set_line_gutter_icon
does not show an icon in projects
#88859
Tested versions
Latest master as of writing, 4.3-dev 99addd6
System information
macOS 14.2.1, Apple M1 Pro
Issue description
In TextEdit,
set_line_gutter_icon
does not show an icon when used in projects. However, the similarset_line_gutter_text
function does show text, so this is evidence that my gutters are set up correctly.However, the strange part is that
set_line_gutter_icon
is working when called from the editor for use with the script editor's gutter icons, but it does not work when called from user script in a project.Steps to reproduce
Download and run the minimal reproduction project, which contains this code:
This script adds a gutter, sets an icon for line index 1 (line 2), and sets text for line index 2 (line 3).
Expected behavior: The icon is displayed in the gutter, on the second line, to the left of the letter
b
.Observed behavior: No icon is displayed in the gutter.
Minimal reproduction project (MRP)
TextEditIconBroken.zip
The text was updated successfully, but these errors were encountered: