[gimp] app: tweak focus behavior of GimpToolWidgetGroup when removing widget
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: tweak focus behavior of GimpToolWidgetGroup when removing widget
- Date: Sun, 23 Sep 2018 17:25:45 +0000 (UTC)
commit 24fb597196ecf1ca7633e26a47c7281039c977a3
Author: Ell <ell_se yahoo com>
Date: Sun Sep 23 13:23:08 2018 -0400
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.
app/display/gimptoolwidgetgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/display/gimptoolwidgetgroup.c b/app/display/gimptoolwidgetgroup.c
index f6d2f5606c..8fcb162d8c 100644
--- a/app/display/gimptoolwidgetgroup.c
+++ b/app/display/gimptoolwidgetgroup.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]