+ g_info("we have : x : %u, y : %u, width : %u, height : %u", x, y, width, height);
+ processlist_get_process_pixels(Process_List,
+ 1,
+ &birth,
+ &y,
+ &height);
+
+ g_info("we draw : x : %u, y : %u, width : %u, height : %u", x, y, width, height);
+ drawing_draw_line(
+ Drawing, Pixmap, x,
+ y+(height/2), x + width, y+(height/2),
+ Drawing->Drawing_Area_V->style->black_gc);
+
+ pango_layout_set_text(layout, "Test", -1);
+ gdk_draw_layout(Pixmap, Drawing->Drawing_Area_V->style->black_gc,
+ 0, y+height, layout);
+
+ birth.tv_sec = 14000;
+ birth.tv_nsec = 55500;
+
+ processlist_get_process_pixels(Process_List,
+ 156,
+ &birth,
+ &y,
+ &height);
+
+
+ drawing_draw_line(
+ Drawing, Pixmap, x,
+ y+(height/2), x + width, y+(height/2),
+ Drawing->Drawing_Area_V->style->black_gc);
+
+
+ /* Draw icon */
+ 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_copy(gc, Drawing->Drawing_Area_V->style->black_gc);
+ gdk_gc_set_clip_mask(gc, mask);
+ gdk_draw_drawable(Pixmap,
+ gc,
+ icon_pixmap,
+ 0, 0, 0, 0, -1, -1);
+
+ g_free(icon_pixmap);
+ g_free(mask);
+
+ g_info("y : %u, height : %u", y, height);
+
+
+
+ birth.tv_sec = 12000;
+ birth.tv_nsec = 55700;
+
+ processlist_get_process_pixels(Process_List,
+ 10,
+ &birth,
+ &y,
+ &height);
+
+ /* Draw rectangle (background color) */
+ gdk_gc_copy(gc, Drawing->Drawing_Area_V->style->black_gc);
+ gdk_gc_set_rgb_fg_color(gc, &color);
+ gdk_draw_rectangle(Pixmap, gc,
+ TRUE,
+ x, y, width, height);
+
+ drawing_draw_line(
+ Drawing, Pixmap, x,
+ y+(height/2), x + width, y+(height/2),
+ Drawing->Drawing_Area_V->style->black_gc);