[gimp/gimp-2-10] app: in GimpToolWidgetGroup, calculate hover widget at button press
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in GimpToolWidgetGroup, calculate hover widget at button press
- Date: Sun, 23 Sep 2018 17:27:14 +0000 (UTC)
commit f4797118140c86417a6b78dbb4df1e11f4ea4e7a
Author: Ell <ell_se yahoo com>
Date: Sun Sep 23 12:29:42 2018 -0400
app: in GimpToolWidgetGroup, calculate hover widget at button press
In gimp_tool_widget_group_button_press(), explicitly call
gimp_tool_widget_group_hover() before forwarding the event to the
group's hover widget, so that the hover widget gets recalculated.
If a widget is added to the group as a result of a button-press
event, this guarantees that it gets considered as a target for the
same event.
(cherry picked from commit 5b217b3ad4259418953406601d8de1ae3a3e3d47)
app/display/gimptoolwidgetgroup.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/app/display/gimptoolwidgetgroup.c b/app/display/gimptoolwidgetgroup.c
index f34dea4316..593b361db3 100644
--- a/app/display/gimptoolwidgetgroup.c
+++ b/app/display/gimptoolwidgetgroup.c
@@ -227,6 +227,8 @@ gimp_tool_widget_group_button_press (GimpToolWidget *widget,
GimpToolWidgetGroup *group = GIMP_TOOL_WIDGET_GROUP (widget);
GimpToolWidgetGroupPrivate *priv = group->priv;
+ gimp_tool_widget_group_hover (widget, coords, state, TRUE);
+
if (priv->focus_widget != priv->hover_widget)
{
if (priv->hover_widget)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]