diff --git a/common/utils/T/tracer/gui/gui.h b/common/utils/T/tracer/gui/gui.h index 464ac94463c563508d4731809378cd54f7576b01..6d36cddfd672e295f59eba47929d2101daf8c5b5 100644 --- a/common/utils/T/tracer/gui/gui.h +++ b/common/utils/T/tracer/gui/gui.h @@ -88,6 +88,7 @@ int new_color(gui *gui, char *color); * - resize { int: width } * - scrollup { int [3]: x, y, key_modifiers } * - scrolldown { int [3]: x, y, key_modifiers } + * - click { int: button } */ /* same type as in gui_defs.h */ diff --git a/common/utils/T/tracer/gui/timeline.c b/common/utils/T/tracer/gui/timeline.c index afcb681f9d308393002761b3023f6b27e24bf4d4..2f1e6121f4bd0d8356389dc539ecff8415fb63ad 100644 --- a/common/utils/T/tracer/gui/timeline.c +++ b/common/utils/T/tracer/gui/timeline.c @@ -74,6 +74,10 @@ static void button(gui *_g, widget *_this, int x, int y, d[2] = key_modifiers; gui_notify(g, "scrolldown", _this, d); } + /* button 1/2/3 */ + if ((button == 1 || button == 2 || button == 3) && up == 0) { + gui_notify(g, "click", _this, &button); + } } /*************************************************************************/