g_slist_append(gControl_Flow_Data_List,Control_Flow_Data);
- send_test_data(Control_Flow_Data->Process_List);
+ //FIXME : data sent too fast. The widget must be
+ //inserted in the main window before the Drawing area
+ //can be configured (and this must happend bedore sending
+ //data)
+ send_test_data(Control_Flow_Data->Process_List,
+ Control_Flow_Data->Drawing);
return Control_Flow_Data;
#include "Event_Hooks.h"
#include "CFV.h"
#include "Process_List.h"
+#include "Drawing.h"
-void send_test_data(ProcessList *Process_List)
+void send_test_data(ProcessList *Process_List, Drawing_t *Drawing)
{
- guint height;
+ guint height, size;
int i;
ProcessInfo Process_Info = {10000, 12000, 55600};
//ProcessInfo Process_Info = {156, 14000, 55500};
1,
&birth,
&height);
-
+ Drawing_Insert_Square( Drawing, height, 5);
+
g_critical("height : %u", height);
birth.tv_sec = 14000;
156,
&birth,
&height);
+ Drawing_Insert_Square( Drawing, height, 5);
g_critical("height : %u", height);
10,
&birth,
&height);
+ Drawing_Insert_Square( Drawing, height, 5);
for(i=0; i<10; i++)
{
i,
&birth,
&height);
+ Drawing_Insert_Square( Drawing, height, 5);
}
g_critical("height : %u", height);
10,
&birth,
&height);
+ Drawing_Insert_Square( Drawing, height, 5);
g_critical("height : %u", height);
ProcessList_add(Process_List,
10000,
&birth,
&height);
+ Drawing_Insert_Square( Drawing, height, 5);
g_critical("height : %u", height);
+ ProcessList_get_process_pixels(Process_List,
+ 10000,
+ &birth,
+ &height, &size);
ProcessList_remove( Process_List,
10000,
&birth);
+
+ Drawing_Remove_Square( Drawing, height, 5);
if(got_RowRef =
(GtkTreeRowReference*)g_hash_table_lookup(