From 571aead323dd4cb84d2a39894172c119d6dfbab5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Sep 2018 17:57:59 +1000 Subject: UI: support immediate non-overlapping tooltips Use these for the toolbar, since they're non-overlapping the interface, showing them quickly isn't a problem. --- source/blender/windowmanager/intern/wm_tooltip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_tooltip.c') diff --git a/source/blender/windowmanager/intern/wm_tooltip.c b/source/blender/windowmanager/intern/wm_tooltip.c index 94a44a97afd..0953351de2b 100644 --- a/source/blender/windowmanager/intern/wm_tooltip.c +++ b/source/blender/windowmanager/intern/wm_tooltip.c @@ -39,7 +39,7 @@ void WM_tooltip_timer_init( bContext *C, wmWindow *win, ARegion *ar, - wmTooltipInitFn init) + wmTooltipInitFn init, bool quick) { WM_tooltip_timer_clear(C, win); @@ -49,7 +49,8 @@ void WM_tooltip_timer_init( screen->tool_tip = MEM_callocN(sizeof(*screen->tool_tip), __func__); } screen->tool_tip->region_from = ar; - screen->tool_tip->timer = WM_event_add_timer(wm, win, TIMER, UI_TOOLTIP_DELAY); + screen->tool_tip->timer = WM_event_add_timer( + wm, win, TIMER, quick ? UI_TOOLTIP_DELAY_QUICK : UI_TOOLTIP_DELAY); screen->tool_tip->init = init; } -- cgit v1.2.3