gtk_widget_queue_draw_area ( drawing->drawing_area,
x, 0,
- width, drawing->height);
+ width, drawing->drawing_area->allocation.height);
}
/* Erase the dotted lines left.. */
if(widget->allocation.height > drawing->height)
+ {
gdk_draw_rectangle (widget->window,
drawing->drawing_area->style->black_gc,
TRUE,
event->area.x, drawing->height,
event->area.width, // do not overlap
widget->allocation.height - drawing->height);
-
+g_critical("blah : %u, %u", widget->allocation.height, drawing->height);
+ }
if(ltt_time_compare(time_window.start_time, current_time) <= 0 &&
ltt_time_compare(window_end, current_time) >= 0)
2);
}
- drawing_draw_line(NULL, widget->window,
+ gdk_draw_line(widget->window,
+ drawing->dotted_gc,
cursor_x, 0,
- cursor_x, widget->allocation.height,
- drawing->dotted_gc);
+ cursor_x, widget->allocation.height);
}
return FALSE;
}
gtk_widget_queue_resize_no_redraw(drawing->drawing_area);
/* ask for the buffer to be redrawn */
- gtk_widget_queue_draw_area ( drawing->drawing_area,
- 0, 0,
- drawing->width, drawing->height);
+ gtk_widget_queue_draw ( drawing->drawing_area);
}
drawing->damage_begin+SAFETY, 0,
drawing->damage_end - drawing->damage_begin, // do not overlap
control_flow_data->drawing->height);
-
- gtk_widget_queue_draw_area (drawing->drawing_area,
- 0,0,
- control_flow_data->drawing->width,
- control_flow_data->drawing->height);
+ gtk_widget_queue_draw(drawing->drawing_area);
+ //gtk_widget_queue_draw_area (drawing->drawing_area,
+ // 0,0,
+ // control_flow_data->drawing->width,
+ // control_flow_data->drawing->height);
/* Get new data for the rest. */
drawing_data_request(control_flow_data->drawing,
drawing->damage_end - drawing->damage_begin, // do not overlap
control_flow_data->drawing->height);
- gtk_widget_queue_draw_area (drawing->drawing_area,
- 0,0,
- control_flow_data->drawing->width,
- control_flow_data->drawing->height);
+ gtk_widget_queue_draw(drawing->drawing_area);
+ //gtk_widget_queue_draw_area (drawing->drawing_area,
+ // 0,0,
+ // control_flow_data->drawing->width,
+ // control_flow_data->drawing->height);
/* Get new data for the rest. */
control_flow_data->drawing->width+SAFETY, // do not overlap
control_flow_data->drawing->height);
- gtk_widget_queue_draw_area (drawing->drawing_area,
- 0,0,
- control_flow_data->drawing->width,
- control_flow_data->drawing->height);
+ //gtk_widget_queue_draw_area (drawing->drawing_area,
+ // 0,0,
+ // control_flow_data->drawing->width,
+ // control_flow_data->drawing->height);
+ gtk_widget_queue_draw(drawing->drawing_area);
drawing->damage_begin = 0;
drawing->damage_end = control_flow_data->drawing->width;
control_flow_data->drawing->width+SAFETY, // do not overlap
control_flow_data->drawing->height);
- gtk_widget_queue_draw_area (drawing->drawing_area,
- 0,0,
- control_flow_data->drawing->width,
- control_flow_data->drawing->height);
+ //gtk_widget_queue_draw_area (drawing->drawing_area,
+ // 0,0,
+ // control_flow_data->drawing->width,
+ // control_flow_data->drawing->height);
+ gtk_widget_queue_draw(drawing->drawing_area);
drawing->damage_begin = 0;
drawing->damage_end = control_flow_data->drawing->width;
drawing->height);
}
- gtk_widget_queue_draw_area(drawing->drawing_area,
- 0,0,
- drawing->width,
- drawing->height);
+ gtk_widget_queue_draw(drawing->drawing_area);
+ //gtk_widget_queue_draw_area(drawing->drawing_area,
+ // 0,0,
+ // drawing->width,
+ // drawing->height);
return FALSE;
}
lttvwindow_report_time_window(control_flow_data->tab, new_time_window);
}
- //gtk_widget_queue_draw(control_flow_data->drawing->drawing_area);
- gtk_widget_queue_draw_area(drawing->drawing_area,
- 0,0,
- drawing->width,
- drawing->height);
+ gtk_widget_queue_draw(control_flow_data->drawing->drawing_area);
+
return 0;
}