X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.c;h=92705b2b997be2d9fcacd597f41c0b0512631dab;hb=8321ae6a5238e9fda9d9517c9eec8d1a2980dfd2;hp=96a3a48b5388b103284167392874708cd6f0d846;hpb=5290ec02dda002f243ef98cd018f31ee44e07843;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 96a3a48b..92705b2b 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -119,7 +119,7 @@ void set_current_position(Tab *tab, const LttvTracesetContextPosition *pos) g_assert(lttv_iattribute_find_by_path(tab->attributes, "hooks/updatecurrentposition", LTTV_POINTER, &value)); tmp = (LttvHooks*)*(value.v_pointer); - if(tmp != NULL) lttv_hooks_call(tmp, &pos); + if(tmp != NULL) lttv_hooks_call(tmp, pos); } void add_toolbar_constructor(MainWindow *mw, LttvToolbarClosure *toolbar_c) @@ -938,8 +938,10 @@ void lttvwindow_events_request(Tab *tab, if(!tab->events_request_pending) { /* Redraw has +20 priority. We want to let the redraw be done while we do - * our job. */ - g_idle_add_full((G_PRIORITY_HIGH_IDLE + 21), + * 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), (GSourceFunc)execute_events_requests, tab, NULL); @@ -1024,10 +1026,10 @@ LttTime lttvwindow_get_current_time(Tab *tab) /** * Function to get the filter of the current tab. - * @param main_win, the main window the viewer belongs to. * @param filter, a pointer to a filter. + * + * returns the current filter */ - LttvFilter *lttvwindow_get_filter(Tab *tab) { return tab->filter; @@ -1121,3 +1123,9 @@ void events_request_free(EventsRequest *events_request) } + +GtkWidget *main_window_get_widget(Tab *tab) +{ + return tab->mw->mwindow; +} +