Bug 754713 - On-canvas dialog of color picker tool always displays...

...in initially active tab

gimp_tool_gui_update_shell(): implement the "overlay" case and hide the
gui on the previous shell, then show it on the new one.
This commit is contained in:
Michael Natterer
2015-09-08 21:53:24 +02:00
parent 22fc50c279
commit df2a485907

View File

@ -785,7 +785,17 @@ gimp_tool_gui_update_shell (GimpToolGui *gui)
{
GimpToolGuiPrivate *private = GET_PRIVATE (gui);
if (! private->overlay)
if (private->overlay)
{
if (gtk_widget_get_parent (private->dialog))
{
gimp_tool_gui_hide (gui);
if (private->shell)
gimp_tool_gui_show (gui);
}
}
else
{
gimp_tool_dialog_set_shell (GIMP_TOOL_DIALOG (private->dialog),
private->shell);