app: tweak focus behavior of GimpToolWidgetGroup when removing widget

When removing the focus widget of a GimpToolWidgetGroup, use the
last child, rather than the first child, as the new focus widget.
This plays nicer with auto-raise, and is probably better anyway.
This commit is contained in:
Ell 2018-09-23 13:23:08 -04:00
parent d31725a9cd
commit 24fb597196
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ gimp_tool_widget_group_children_remove (GimpContainer *container,
if (! priv->focus_widget)
{
priv->focus_widget =
GIMP_TOOL_WIDGET (gimp_container_get_first_child (container));
GIMP_TOOL_WIDGET (gimp_container_get_last_child (container));
if (priv->focus_widget)
gimp_tool_widget_set_focus (priv->focus_widget, TRUE);