X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2Ftest.c;h=fee1f4b5795ea6cf47067d8d71911e5090d76796;hb=b6db18f8146b58641bfc639049bc53aaeb658bb9;hp=43f7c97c618ddc336387044169ee6f125e16feed;hpb=14963be07f6a9c7c2db0d988f557b870ebd5dead;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/test.c b/ltt/branches/poly/lttv/modules/guiControlFlow/test.c index 43f7c97c..fee1f4b5 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/test.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/test.c @@ -82,8 +82,8 @@ void add_test_process(ControlFlowData *control_flow_data) for(i=0; inumber_of_process; i++) { /* Add a new row to the model */ - gtk_list_store_append (control_flow_data->Store_M, &iter); - gtk_list_store_set ( control_flow_data->Store_M, &iter, + gtk_list_store_append (control_flow_data->list_store, &iter); + gtk_list_store_set ( control_flow_data->list_store, &iter, PROCESS_COLUMN, process[i], -1); } @@ -110,7 +110,7 @@ void test_draw(ControlFlowData *control_flow_data) #ifdef DEBUG void test_draw() { - gint cell_height = get_cell_height(GTK_TREE_VIEW(control_flow_data->process_list_VC)); + gint cell_height = get_cell_height(GTK_TREE_VIEW(control_flow_data->process_list_widget)); GdkGC *GC = gdk_gc_new(widget->window); GdkColor color = CF_Colors[GREEN]; @@ -187,7 +187,7 @@ void test_draw() { /* Event_Hook.c tests */ void test_draw_item(Drawing_t *Drawing, - GdkPixmap *Pixmap) + GdkPixmap *pixmap) { PropertiesIcon properties_icon; DrawContext draw_context; @@ -206,7 +206,7 @@ void test_draw_item(Drawing_t *Drawing, current.modify_over = &over; - draw_context.drawable = Pixmap; + draw_context.drawable = pixmap; draw_context.gc = Drawing->drawing_area->style->black_gc; draw_context.current = ¤t; @@ -231,7 +231,7 @@ void test_draw_item(Drawing_t *Drawing, * has not been initialized */ void send_test_drawing(ProcessList *process_list, Drawing_t *Drawing, - GdkPixmap *Pixmap, + GdkPixmap *pixmap, gint x, gint y, // y not used here? gint width, gint height) // height won't be used here ? @@ -239,7 +239,7 @@ void send_test_drawing(ProcessList *process_list, int i,j; ProcessInfo Process_Info = {10000, 12000, 55600}; //ProcessInfo Process_Info = {156, 14000, 55500}; - GtkTreeRowReference *got_RowRef; + GtkTreeRowReference *row_ref; PangoContext *context; PangoLayout *layout; PangoFontDescription *FontDesc;// = pango_font_description_new(); @@ -252,7 +252,7 @@ void send_test_drawing(ProcessList *process_list, // rectangle GdkColor color = { 0, 0xffff, 0x0000, 0x0000 }; - gc = gdk_gc_new(Pixmap); + gc = gdk_gc_new(pixmap); /* Sent text data */ layout = gtk_widget_create_pango_layout(Drawing->drawing_area, NULL); @@ -276,12 +276,12 @@ void send_test_drawing(ProcessList *process_list, g_info("we draw : x : %u, y : %u, width : %u, height : %u", x, y, width, height); drawing_draw_line( - Drawing, Pixmap, x, + Drawing, pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->drawing_area->style->black_gc); pango_layout_set_text(layout, "Test", -1); - gdk_draw_layout(Pixmap, Drawing->drawing_area->style->black_gc, + gdk_draw_layout(pixmap, Drawing->drawing_area->style->black_gc, 0, y+height, layout); birth.tv_sec = 14000; @@ -295,7 +295,7 @@ void send_test_drawing(ProcessList *process_list, drawing_draw_line( - Drawing, Pixmap, x, + Drawing, pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->drawing_area->style->black_gc); @@ -315,18 +315,18 @@ void send_test_drawing(ProcessList *process_list, /* Draw rectangle (background color) */ gdk_gc_copy(gc, Drawing->drawing_area->style->black_gc); gdk_gc_set_rgb_fg_color(gc, &color); - gdk_draw_rectangle(Pixmap, gc, + gdk_draw_rectangle(pixmap, gc, TRUE, x, y, width, height); drawing_draw_line( - Drawing, Pixmap, x, + Drawing, pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->drawing_area->style->black_gc); /* Draw arc */ - gdk_draw_arc(Pixmap, Drawing->drawing_area->style->black_gc, + gdk_draw_arc(pixmap, Drawing->drawing_area->style->black_gc, TRUE, 100, y, height/2, height/2, 0, 360*64); g_info("y : %u, height : %u", y, height); @@ -344,7 +344,7 @@ void send_test_drawing(ProcessList *process_list, drawing_draw_line( - Drawing, Pixmap, x, + Drawing, pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->drawing_area->style->black_gc); @@ -363,7 +363,7 @@ void send_test_drawing(ProcessList *process_list, drawing_draw_line( - Drawing, Pixmap, x, + Drawing, pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->drawing_area->style->black_gc); @@ -371,7 +371,7 @@ void send_test_drawing(ProcessList *process_list, /* IMPORTANT : This action uses the cpu heavily! */ - //icon_pixmap = gdk_pixmap_create_from_xpm(Pixmap, &mask, NULL, + //icon_pixmap = gdk_pixmap_create_from_xpm(pixmap, &mask, NULL, // "/home/compudj/local/share/LinuxTraceToolkit/pixmaps/move_message.xpm"); // "/home/compudj/local/share/LinuxTraceToolkit/pixmaps/mini-display.xpm"); @@ -385,7 +385,7 @@ void send_test_drawing(ProcessList *process_list, /* Draw icon */ //gdk_gc_copy(gc, Drawing->drawing_area->style->black_gc); // gdk_gc_set_clip_origin(Drawing->drawing_area->style->black_gc, i, j); -// gdk_draw_drawable(Pixmap, +// gdk_draw_drawable(pixmap, // Drawing->drawing_area->style->black_gc, // icon_pixmap, // 0, 0, i, j, -1, -1); @@ -393,7 +393,7 @@ void send_test_drawing(ProcessList *process_list, // } // } - test_draw_item(Drawing,Pixmap); + test_draw_item(Drawing,pixmap); //gdk_gc_set_clip_origin(Drawing->drawing_area->style->black_gc, 0, 0); //gdk_gc_set_clip_mask(Drawing->drawing_area->style->black_gc, NULL); @@ -417,7 +417,7 @@ void send_test_process(ProcessList *process_list, Drawing_t *Drawing) int i; ProcessInfo Process_Info = {10000, 12000, 55600}; //ProcessInfo Process_Info = {156, 14000, 55500}; - GtkTreeRowReference *got_RowRef; + GtkTreeRowReference *row_ref; LttTime birth; @@ -537,7 +537,7 @@ void send_test_process(ProcessList *process_list, Drawing_t *Drawing) drawing_remove_square( Drawing, y, height); - if(got_RowRef = + if(row_ref = (GtkTreeRowReference*)g_hash_table_lookup( process_list->process_hash, &Process_Info)) @@ -546,7 +546,7 @@ void send_test_process(ProcessList *process_list, Drawing_t *Drawing) g_critical("position in the list : %s", gtk_tree_path_to_string ( gtk_tree_row_reference_get_path( - (GtkTreeRowReference*)got_RowRef) + (GtkTreeRowReference*)row_ref) )); }