Make zero-time switches between tabs flick-less.
This commit is contained in:
parent
1ee57c508e
commit
a78acc35d7
|
@ -1373,6 +1373,7 @@ _cb_prev(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
|||
{
|
||||
Term *term = data;
|
||||
Term *term2 = NULL;
|
||||
Config *config = termio_config_get(term->term);
|
||||
|
||||
if (term->focused) term2 = _term_prev_get(term);
|
||||
if (term2)
|
||||
|
@ -1381,7 +1382,7 @@ _cb_prev(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
|||
|
||||
sp0 = _split_find(term->wn->win, term->term);
|
||||
sp = _split_find(term2->wn->win, term2->term);
|
||||
if (sp == sp0)
|
||||
if (sp == sp0 && config->tab_zoom >= 0.01)
|
||||
_sel_go(sp, term2);
|
||||
else
|
||||
{
|
||||
|
@ -1396,7 +1397,8 @@ _cb_next(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
|||
{
|
||||
Term *term = data;
|
||||
Term *term2 = NULL;
|
||||
|
||||
Config *config = termio_config_get(term->term);
|
||||
|
||||
if (term->focused) term2 = _term_next_get(term);
|
||||
if (term2)
|
||||
{
|
||||
|
@ -1404,7 +1406,7 @@ _cb_next(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
|||
|
||||
sp0 = _split_find(term->wn->win, term->term);
|
||||
sp = _split_find(term2->wn->win, term2->term);
|
||||
if (sp == sp0)
|
||||
if (sp == sp0 && config->tab_zoom >= 0.01)
|
||||
_sel_go(sp, term2);
|
||||
else
|
||||
{
|
||||
|
|
|
@ -524,11 +524,21 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
|
|||
o = elm_label_add(bx);
|
||||
evas_object_size_hint_weight_set(o, 0.0, 0.0);
|
||||
evas_object_size_hint_align_set(o, 0.0, 0.5);
|
||||
elm_object_text_set(o, "Tab Zoom Animation:");
|
||||
elm_object_text_set(o, "Tab zoom/switch animation time:");
|
||||
elm_object_tooltip_text_set
|
||||
(o, "Set the time of the animation that<br>"
|
||||
"takes places on tab switches,<br>"
|
||||
"be them by key binding, mouse<br>"
|
||||
"wheel or tabs panel mouse move");
|
||||
elm_box_pack_end(bx, o);
|
||||
evas_object_show(o);
|
||||
|
||||
o = elm_slider_add(bx);
|
||||
elm_object_tooltip_text_set
|
||||
(o, "Set the time of the animation that<br>"
|
||||
"takes places on tab switches,<br>"
|
||||
"be them by key binding, mouse<br>"
|
||||
"wheel or tabs panel mouse move");
|
||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0);
|
||||
elm_slider_span_size_set(o, 40);
|
||||
|
|
Loading…
Reference in New Issue