+ /* Draw the line/background of the out process */
+ if(draw_context_out->previous->middle->x == -1)
+ {
+ draw_context_out->previous->over->x = event_request->x_begin;
+ draw_context_out->previous->middle->x = event_request->x_begin;
+ draw_context_out->previous->under->x = event_request->x_begin;
+
+ g_debug("out middle x_beg : %u",event_request->x_begin);
+ }
+
+ draw_context_out->current->middle->x = x;
+ draw_context_out->current->over->x = x;
+ draw_context_out->current->under->x = x;
+ draw_context_out->current->middle->y = y_out + height/2;
+ draw_context_out->current->over->y = y_out;
+ draw_context_out->current->under->y = y_out + height;
+ draw_context_out->previous->middle->y = y_out + height/2;
+ draw_context_out->previous->over->y = y_out;
+ draw_context_out->previous->under->y = y_out + height;
+
+ draw_context_out->drawable = control_flow_data->drawing->pixmap;
+ draw_context_out->pango_layout = control_flow_data->drawing->pango_layout;
+
+ if(process_out->state->s == LTTV_STATE_RUN)
+ {
+ draw_context_out->gc = gdk_gc_new(control_flow_data->drawing->pixmap);
+ gdk_gc_copy(draw_context_out->gc, widget->style->black_gc);
+
+ PropertiesBG prop_bg;
+ prop_bg.color = g_new(GdkColor,1);
+
+ switch(tfc->index) {
+ case 0:
+ prop_bg.color->red = 0x1515;
+ prop_bg.color->green = 0x1515;
+ prop_bg.color->blue = 0x8c8c;
+ break;
+ case 1:
+ prop_bg.color->red = 0x4e4e;
+ prop_bg.color->green = 0xa9a9;
+ prop_bg.color->blue = 0xa4a4;
+ break;
+ case 2:
+ prop_bg.color->red = 0x7a7a;
+ prop_bg.color->green = 0x4a4a;
+ prop_bg.color->blue = 0x8b8b;
+ break;
+ case 3:
+ prop_bg.color->red = 0x8080;
+ prop_bg.color->green = 0x7777;
+ prop_bg.color->blue = 0x4747;
+ break;
+ default:
+ prop_bg.color->red = 0xe7e7;
+ prop_bg.color->green = 0xe7e7;
+ prop_bg.color->blue = 0xe7e7;
+ }
+
+ g_debug("calling from draw_event");
+ draw_bg((void*)&prop_bg, (void*)draw_context_out);
+ g_free(prop_bg.color);
+ gdk_gc_unref(draw_context_out->gc);
+ }
+
+ draw_context_out->gc = widget->style->black_gc;
+