app: paint the text cursor in the highlight color

so it can be distinguished from the text box rectangle more easily.
This commit is contained in:
Michael Natterer 2011-03-19 10:11:47 +01:00
parent 0789ee2669
commit 4f62bdf436
1 changed files with 7 additions and 4 deletions

View File

@ -793,6 +793,7 @@ gimp_text_tool_draw (GimpDrawTool *draw_tool)
{ {
/* If the text buffer has no selection, draw the text cursor */ /* If the text buffer has no selection, draw the text cursor */
GimpCanvasItem *item;
PangoRectangle cursor_rect; PangoRectangle cursor_rect;
gint off_x, off_y; gint off_x, off_y;
gboolean overwrite; gboolean overwrite;
@ -807,7 +808,9 @@ gimp_text_tool_draw (GimpDrawTool *draw_tool)
overwrite = text_tool->overwrite_mode && cursor_rect.width != 0; overwrite = text_tool->overwrite_mode && cursor_rect.width != 0;
gimp_draw_tool_add_text_cursor (draw_tool, &cursor_rect, overwrite); item = gimp_draw_tool_add_text_cursor (draw_tool, &cursor_rect,
overwrite);
gimp_canvas_item_set_highlight (item, TRUE);
} }
} }