X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.c;h=3dea5a927257b9a9ebc2b12eadad88c7e93f3b5d;hb=ec7a5af61127aa50a1839eee5be99ce53494c57b;hp=0340caf972aac5cf387732e510726ccc4a17ad42;hpb=96c9eb79a6fc39641e41ea9c6e78c71297cab7de;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 0340caf9..3dea5a92 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -938,8 +938,13 @@ __EXPORT void lttvwindow_events_request(Tab *tab, /* Redraw has +20 priority. We want to let the redraw be done while we do * our job. Mathieu : test with high prio higher than events for better * scrolling. */ - //g_idle_add_full((G_PRIORITY_HIGH_IDLE + 21), - g_idle_add_full((G_PRIORITY_DEFAULT + 2), + /* Mathieu, 2008 : ok, finally, the control flow view needs the cell updates + * to come soon enough so we can have one active cell to get the pixmap + * buffer height from. Therefore, let the gdk events run before the events + * requests. + */ + g_idle_add_full((G_PRIORITY_HIGH_IDLE + 21), + //g_idle_add_full((G_PRIORITY_DEFAULT + 2), (GSourceFunc)execute_events_requests, tab, NULL); @@ -1110,9 +1115,7 @@ void events_request_free(EventsRequest *events_request) if(events_request->hooks != NULL) { guint i; GArray *hooks = events_request->hooks; - for(i=0;ilen;i++) { - lttv_trace_hook_destroy(&g_array_index(hooks, LttvTraceHook, i)); - } + lttv_trace_hook_remove_all(&hooks); g_array_free(events_request->hooks, TRUE); } if(events_request->before_chunk_traceset != NULL)