mirror of https://github.com/GNOME/gimp.git
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:
parent
69ddbeba29
commit
b9e49a3fd9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue