Pixmap to pixmap name change
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / test.c
index 7fcd2fcd3ba1a559624dfe85d811a0c3ea378280..fee1f4b5795ea6cf47067d8d71911e5090d76796 100644 (file)
@@ -82,8 +82,8 @@ void add_test_process(ControlFlowData *control_flow_data)
        for(i=0; i<control_flow_data->number_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,8 +206,8 @@ void test_draw_item(Drawing_t *Drawing,
 
                        current.modify_over = &over;
        
-                       draw_context.drawable = Pixmap;
-                       draw_context.gc = Drawing->Drawing_Area_V->style->black_gc;
+                       draw_context.drawable = pixmap;
+                       draw_context.gc = Drawing->drawing_area->style->black_gc;
 
                        draw_context.current = &current;
                        draw_context.previous = NULL;
@@ -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,9 +252,9 @@ 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_V,
+       layout = gtk_widget_create_pango_layout(Drawing->drawing_area,
                        NULL);
        context = pango_layout_get_context(layout);
        FontDesc = pango_context_get_font_description(context);
@@ -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_V->style->black_gc);
+               Drawing->drawing_area->style->black_gc);
 
        pango_layout_set_text(layout, "Test", -1);
-       gdk_draw_layout(Pixmap, Drawing->Drawing_Area_V->style->black_gc,
+       gdk_draw_layout(pixmap, Drawing->drawing_area->style->black_gc,
                        0, y+height, layout);
 
        birth.tv_sec = 14000;
@@ -295,9 +295,9 @@ 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_V->style->black_gc);
+               Drawing->drawing_area->style->black_gc);
 
        g_info("y : %u, height : %u", y, height);
 
@@ -313,20 +313,20 @@ void send_test_drawing(ProcessList *process_list,
                                        &height);
 
        /* Draw rectangle (background color) */
-       gdk_gc_copy(gc, Drawing->Drawing_Area_V->style->black_gc);
+       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_V->style->black_gc);
+               Drawing->drawing_area->style->black_gc);
 
        
        /* Draw arc */
-       gdk_draw_arc(Pixmap, Drawing->Drawing_Area_V->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,9 +344,9 @@ 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_V->style->black_gc);
+                       Drawing->drawing_area->style->black_gc);
 
                g_critical("y : %u, height : %u", y, height);
 
@@ -363,19 +363,19 @@ 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_V->style->black_gc);
+               Drawing->drawing_area->style->black_gc);
 
        g_info("y : %u, height : %u", y, height);
        
 
        /* 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");
 
-       //              gdk_gc_set_clip_mask(Drawing->Drawing_Area_V->style->black_gc, mask);
+       //              gdk_gc_set_clip_mask(Drawing->drawing_area->style->black_gc, mask);
 
 //     for(i=x;i<x+width;i=i+15)
 //     {
@@ -383,20 +383,20 @@ void send_test_drawing(ProcessList *process_list,
 //             {
                        
                        /* Draw icon */
-                       //gdk_gc_copy(gc, Drawing->Drawing_Area_V->style->black_gc);
-//                     gdk_gc_set_clip_origin(Drawing->Drawing_Area_V->style->black_gc, i, j);
-//                     gdk_draw_drawable(Pixmap, 
-//                                     Drawing->Drawing_Area_V->style->black_gc,
+                       //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, 
+//                                     Drawing->drawing_area->style->black_gc,
 //                                     icon_pixmap,
 //                                     0, 0, i, j, -1, -1);
 
 //             }
 //     }
 
-       test_draw_item(Drawing,Pixmap);
+       test_draw_item(Drawing,pixmap);
        
-       //gdk_gc_set_clip_origin(Drawing->Drawing_Area_V->style->black_gc, 0, 0);
-       //gdk_gc_set_clip_mask(Drawing->Drawing_Area_V->style->black_gc, NULL);
+       //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);
 
        //g_free(icon_pixmap);
        //g_free(mask);
@@ -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,16 +537,16 @@ 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_list->process_hash,
                                        &Process_Info))
        {
                g_critical("key found");
                g_critical("position in the list : %s",
                        gtk_tree_path_to_string (
                        gtk_tree_row_reference_get_path(
-                               (GtkTreeRowReference*)got_RowRef)
+                               (GtkTreeRowReference*)row_ref)
                        ));
                
        }
This page took 0.043174 seconds and 4 git commands to generate.