mouse wheel on tab counter: fix navigation

Do not register the same callback twice.
Invert action on mouse-wheel. During my test, it felt more logical like
that.

Closes T4316
This commit is contained in:
Boris Faure 2016-11-19 12:37:41 +01:00
parent 8658ea9d57
commit 5b34e2ba67
2 changed files with 2 additions and 9 deletions

View File

@ -596,11 +596,11 @@ collections {
action: SIGNAL_EMIT "tabcount,go" "terminology";
}
program {
signal: "mouse,wheel,0,-1"; source: "tabcount_ev";
signal: "mouse,wheel,0,1"; source: "tabcount_ev";
action: SIGNAL_EMIT "tabcount,prev" "terminology";
}
program {
signal: "mouse,wheel,0,1"; source: "tabcount_ev";
signal: "mouse,wheel,0,-1"; source: "tabcount_ev";
action: SIGNAL_EMIT "tabcount,next" "terminology";
}
program {

View File

@ -4311,13 +4311,6 @@ term_new(Win *wn, Config *config, const char *cmd,
o = term->termio;
edje_object_signal_callback_add(term->bg, "popmedia,done", "terminology",
_cb_popmedia_done, term);
edje_object_signal_callback_add(term->bg, "tabcount,prev", "terminology",
_cb_tabcount_prev, term);
edje_object_signal_callback_add(term->bg, "tabcount,next", "terminology",
_cb_tabcount_next, term);
evas_object_size_hint_weight_set(o, 0, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(o, 0, EVAS_HINT_FILL);
evas_object_event_callback_add(o, EVAS_CALLBACK_CHANGED_SIZE_HINTS,