further reduce ibar menu hide delay, make delay even shorter when leaving menu

it seems that I always have this thing stuck open for a long period of time after moving my mouse out through it. I suspect that most times when a user moves the cursor out of the menu and does not immediately move it back or to the icon, the menu probably shouldn't hang around. likewise, when it moves out of the icon, maybe we give a little extra time to reach the menu, but not so much that it hangs around if the icon was exited through the side
This commit is contained in:
Mike Blumenkrantz 2014-01-17 18:21:13 -05:00
parent c9d71e4044
commit 312a53e44a
1 changed files with 2 additions and 2 deletions

View File

@ -1121,7 +1121,7 @@ _ibar_icon_menu_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA
if (ic->hide_timer)
ecore_timer_reset(ic->hide_timer);
else
ic->hide_timer = ecore_timer_add(1.0, _ibar_cb_out_hide_delay, ic);
ic->hide_timer = ecore_timer_add(0.5, _ibar_cb_out_hide_delay, ic);
}
static void
@ -1318,7 +1318,7 @@ _ibar_cb_icon_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSE
if (ic->hide_timer)
ecore_timer_reset(ic->hide_timer);
else
ic->hide_timer = ecore_timer_add(1.0, _ibar_cb_out_hide_delay, ic);
ic->hide_timer = ecore_timer_add(0.75, _ibar_cb_out_hide_delay, ic);
}
}