LttvIAttribute *attributes = mw->attributes;
LttvAttributeValue value;
LttvToolbars * instance_toolbar;
- lttvwindow_viewer_constructor constructor;
GtkWidget * tool_menu_title_menu, *widget;
g_assert(lttv_iattribute_find_by_path(attributes,
LttvIAttribute *attributes = mw->attributes;
LttvAttributeValue value;
LttvMenus * instance_menu;
- lttvwindow_viewer_constructor constructor;
GtkWidget * tool_menu_title_menu, *widget;
- LttvMenuClosure *menu_item_i;
g_assert(lttv_iattribute_find_by_path(attributes,
"viewers/menu", LTTV_POINTER, &value));
}
{
LttvAttribute *attribute;
- g_assert(attribute =
- LTTV_ATTRIBUTE(lttv_iattribute_find_subdir(
- LTTV_IATTRIBUTE(attributes_global),
- LTTV_VIEWER_CONSTRUCTORS)));
+ gboolean result;
+
+ attribute = LTTV_ATTRIBUTE(lttv_iattribute_find_subdir(
+ LTTV_IATTRIBUTE(attributes_global),
+ LTTV_VIEWER_CONSTRUCTORS));
+ g_assert(attribute);
- g_assert(lttv_iattribute_find_by_path(LTTV_IATTRIBUTE(attribute),
- name, LTTV_POINTER, &value));
+ result = lttv_iattribute_find_by_path(LTTV_IATTRIBUTE(attribute),
+ name, LTTV_POINTER, &value);
+ g_assert(result);
*(value.v_pointer) = view_constructor;
{
LttvAttribute *attribute;
- g_assert(attribute =
- LTTV_ATTRIBUTE(lttv_iattribute_find_subdir(
- LTTV_IATTRIBUTE(attributes_global),
- LTTV_VIEWER_CONSTRUCTORS)));
+ attribute = LTTV_ATTRIBUTE(lttv_iattribute_find_subdir(
+ LTTV_IATTRIBUTE(attributes_global),
+ LTTV_VIEWER_CONSTRUCTORS));
+ g_assert(attribute);
guint num = lttv_iattribute_get_number(LTTV_IATTRIBUTE(attribute));
guint i;
__EXPORT void lttvwindow_report_current_time(Tab *tab,
LttTime time)
{
- LttvAttributeValue value;
- LttvHooks * tmp;
-
current_time_change_manager(tab, time);
}
__EXPORT void lttvwindow_report_current_position(Tab *tab,
LttvTracesetContextPosition *pos)
{
- LttvAttributeValue value;
- LttvHooks * tmp;
-
current_position_change_manager(tab, pos);
}
/* 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);
if(events_request->hooks != NULL) {
guint i;
GArray *hooks = events_request->hooks;
- for(i=0;i<hooks->len;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)