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)
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);
/**
* 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;
}
+
+GtkWidget *main_window_get_widget(Tab *tab)
+{
+ return tab->mw->mwindow;
+}
+