From 5b34e2ba6769971487a67b0b6df538e98a582713 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 19 Nov 2016 12:37:41 +0100 Subject: [PATCH] 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 --- data/themes/default.edc | 4 ++-- src/bin/win.c | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/data/themes/default.edc b/data/themes/default.edc index 599a18f6..15a843a9 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -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 { diff --git a/src/bin/win.c b/src/bin/win.c index 66539621..1d97b8e7 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -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,