tools: Fix hiding on-canvas text editor

After 59cb3e36, the GimpOverlayFrame that contains
the on-canvas text editor is still partially visible as a dot.
This patch now hides and shows that as well based on
the "Show On-Canvas Editor" option.
This commit is contained in:
Alx Sa 2023-07-07 23:11:22 +00:00
parent 69ddbeba29
commit b9e49a3fd9
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,8 @@ gimp_text_tool_editor_start (GimpTextTool *text_tool)
}
gimp_text_tool_editor_position (text_tool);
gtk_widget_show (text_tool->style_overlay);
if (options->show_on_canvas)
gtk_widget_show (text_tool->style_overlay);
}
void
@ -1337,6 +1338,8 @@ gimp_text_tool_options_notify (GimpTextOptions *options,
{
gtk_widget_set_visible (text_tool->style_editor,
options->show_on_canvas);
gtk_widget_set_visible (text_tool->style_overlay,
options->show_on_canvas);
}
}