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.
(cherry picked from commit 24fb597196
)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user