#include <lttv/processTrace.h>
+
+#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
+#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
+
+
/*****************************************************************************
* Drawing functions *
*****************************************************************************/
};
-//struct _Drawing_t {
-// GtkWidget *Drawing_Area_V;
-// GdkPixmap *Pixmap;
-// ControlFlowData *Control_Flow_Data;
-
-// gint height, width, depth;
-
-//};
-
/* Function responsible for updating the exposed area.
* It must call processTrace() to ask for this update.
*/
gint width,
gint height)
{
+
+// start from pixel to time(x)
+// end from pixel to time (x + width)
+
+// LttvTracesetContext * tsc = get_traceset_context(event_viewer_data->mw);
+
if(width < 0) return ;
if(height < 0) return ;
guicontrolflow_get_process_list(Drawing->Control_Flow_Data),
Drawing, *Pixmap, x, y, width, height);
+ // Let's call processTrace() !!
+
+
+ //lttv_process_traceset_seek_time(tsc, start);
+ //lttv_traceset_context_add_hooks(
+ //lttv_process_traceset
+ //lttv_traceset_context_remove_hooks
}
/* Callbacks */
// widget->allocation.height -
// Drawing->height);
-
if (Drawing->Pixmap)
guint x, guint y,
guint width, guint height)
{
+ g_info("Drawing.c : drawing_refresh %u, %u, %u, %u", x, y, width, height);
GdkRectangle update_rect;
gdk_draw_drawable(
update_rect.height = Drawing->height - y ;
gtk_widget_draw( Drawing->Drawing_Area_V, &update_rect);
}
+
+