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=179eab0ad157806f33bd85545ea64315d81a2d43;hpb=a998b781c5e28cb4a364ce09cd99dc1d3dbf6a06;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 179eab0a..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,15 +1026,14 @@ 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 */ -#if 0 LttvFilter *lttvwindow_get_filter(Tab *tab) { return tab->filter; } -#endif //0 /** * Function to set the filter of the current tab. @@ -1122,3 +1123,9 @@ void events_request_free(EventsRequest *events_request) } + +GtkWidget *main_window_get_widget(Tab *tab) +{ + return tab->mw->mwindow; +} +