app: in GimpDrawTool, set widget focus when setting widget
In gimp_draw_tool_set_widget(), make the new tool widget focused,
and unset the focus of the old widget.
(cherry picked from commit 322599836c)
This commit is contained in:
parent
8a69a3e755
commit
e34dd5a4eb
1 changed files with 4 additions and 0 deletions
|
|
@ -666,6 +666,8 @@ gimp_draw_tool_set_widget (GimpDrawTool *draw_tool,
|
|||
|
||||
if (draw_tool->widget)
|
||||
{
|
||||
gimp_tool_widget_set_focus (draw_tool->widget, FALSE);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (draw_tool->widget,
|
||||
gimp_draw_tool_widget_status,
|
||||
draw_tool);
|
||||
|
|
@ -708,6 +710,8 @@ gimp_draw_tool_set_widget (GimpDrawTool *draw_tool,
|
|||
g_signal_connect (draw_tool->widget, "snap-offsets",
|
||||
G_CALLBACK (gimp_draw_tool_widget_snap_offsets),
|
||||
draw_tool);
|
||||
|
||||
gimp_tool_widget_set_focus (draw_tool->widget, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue