Commit 3212da71 authored by Ell's avatar Ell

app: increase idle priority for hiding on-hover tool-group menu

In GimpToolButton, when in "show menu on hover" mode, increase the
idle priority for hiding the the tool-group menu upon button/menu
leave-notify.  Make the priority one step below the normal event
priority, so that a subsequent button/menu enter-notify event
canceling the idle is processed beforehand, while the idle is
otherwise still processed before ordinary lower-priority sources,
in particular, before projection rendering timeouts.
parent b177c98e
Pipeline #191952 passed with stages
in 21 minutes and 57 seconds
......@@ -711,9 +711,10 @@ gimp_tool_button_leave_notify (GtkWidget *widget,
{
if (! tool_button->priv->menu_idle_id)
{
tool_button->priv->menu_idle_id = g_idle_add (
tool_button->priv->menu_idle_id = g_idle_add_full (
G_PRIORITY_DEFAULT + 1,
(GSourceFunc) gimp_tool_button_menu_idle,
tool_button);
tool_button, NULL);
}
}
else
......@@ -948,9 +949,10 @@ gimp_tool_button_menu_leave_notify (GtkMenu *menu,
if (tool_button->priv->show_menu_on_hover &&
! tool_button->priv->menu_idle_id)
{
tool_button->priv->menu_idle_id = g_idle_add (
tool_button->priv->menu_idle_id = g_idle_add_full (
G_PRIORITY_DEFAULT + 1,
(GSourceFunc) gimp_tool_button_menu_idle,
tool_button);
tool_button, NULL);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment