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