X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=ea08a9d7bbac082cc0374e0c94651244b531c2dd;hb=21e8c385eea6d358ce5c7254eb4e8fbdd5393425;hp=0f27942b409d9b51dacefa01b3650c65d8e299b8;hpb=319e9d81af5c62d9bfae5a228e9158385c6309a9;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index 0f27942b..ea08a9d7 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include "eventhooks.h" @@ -1016,6 +1016,11 @@ gint update_time_window_hook(void *hook_data, void *call_data) guicontrolflow_get_time_window(control_flow_data); TimeWindow *new_time_window = ((TimeWindow*)call_data); + /* Update the ruler */ + drawing_update_ruler(control_flow_data->drawing, + new_time_window); + + /* Two cases : zoom in/out or scrolling */ /* In order to make sure we can reuse the old drawing, the scale must @@ -1197,6 +1202,8 @@ gint update_time_window_hook(void *hook_data, void *call_data) control_flow_data->drawing->height); } + + return 0; }