aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-11-19 12:37:41 +0100
committerBoris Faure <billiob@gmail.com>2016-11-19 12:37:41 +0100
commit5b34e2ba6769971487a67b0b6df538e98a582713 (patch)
tree91317316a2c4957365ced7fe2837d7129420fa11
parenttermio: fix leak. CID1365971 (diff)
downloadterminology-5b34e2ba6769971487a67b0b6df538e98a582713.tar.gz
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 https://phab.enlightenment.org/T4316
-rw-r--r--data/themes/default.edc4
-rw-r--r--src/bin/win.c7
2 files changed, 2 insertions, 9 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 599a18f..15a843a 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 6653962..1d97b8e 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,