projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
line current : dash style
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
controlflow
/
drawing.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
index cc4eb9602b418645cd687debbffa4cb141f04ada..2c10cb020634116c63c03c690a2e16ad397d86b4 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
+++ b/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
@@
-205,7
+205,7
@@
configure_event( GtkWidget *widget, GdkEventConfigure *event,
// Clear the image
gdk_draw_rectangle (drawing->pixmap,
// Clear the image
gdk_draw_rectangle (drawing->pixmap,
- widget->style->
white
_gc,
+ widget->style->
black
_gc,
TRUE,
0, 0,
widget->allocation.width+SAFETY,
TRUE,
0, 0,
widget->allocation.width+SAFETY,
@@
-240,7
+240,7
@@
configure_event( GtkWidget *widget, GdkEventConfigure *event,
/* Copy old data to new pixmap */
gdk_draw_drawable (pixmap,
/* Copy old data to new pixmap */
gdk_draw_drawable (pixmap,
- widget->style->
white
_gc,
+ widget->style->
black
_gc,
drawing->pixmap,
0, 0,
0, 0,
drawing->pixmap,
0, 0,
0, 0,
@@
-253,7
+253,7
@@
configure_event( GtkWidget *widget, GdkEventConfigure *event,
// Clear the bottom part of the image (SAFETY)
gdk_draw_rectangle (pixmap,
// Clear the bottom part of the image (SAFETY)
gdk_draw_rectangle (pixmap,
- widget->style->
white
_gc,
+ widget->style->
black
_gc,
TRUE,
0, drawing->height+SAFETY,
drawing->width+SAFETY, // do not overlap
TRUE,
0, drawing->height+SAFETY,
drawing->width+SAFETY, // do not overlap
@@
-261,7
+261,7
@@
configure_event( GtkWidget *widget, GdkEventConfigure *event,
// Clear the right part of the image (SAFETY)
gdk_draw_rectangle (pixmap,
// Clear the right part of the image (SAFETY)
gdk_draw_rectangle (pixmap,
- widget->style->
white
_gc,
+ widget->style->
black
_gc,
TRUE,
drawing->width+SAFETY, 0,
(widget->allocation.width) - drawing->width, // do not overlap
TRUE,
drawing->width+SAFETY, 0,
(widget->allocation.width) - drawing->width, // do not overlap
@@
-269,7
+269,7
@@
configure_event( GtkWidget *widget, GdkEventConfigure *event,
/* Clear the backgound for data request, but not SAFETY */
gdk_draw_rectangle (pixmap,
/* Clear the backgound for data request, but not SAFETY */
gdk_draw_rectangle (pixmap,
- drawing->drawing_area->style->
white
_gc,
+ drawing->drawing_area->style->
black
_gc,
TRUE,
drawing->width + SAFETY, 0,
widget->allocation.width - drawing->width, // do not overlap
TRUE,
drawing->width + SAFETY, 0,
widget->allocation.width - drawing->width, // do not overlap
@@
-324,9
+324,18
@@
expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data )
if(x >= event->area.x && x <= event->area.x+event->area.width)
{
if(x >= event->area.x && x <= event->area.x+event->area.width)
{
+ gint8 dash_list[] = { 1, 2 };
GdkGC *gc = gdk_gc_new(control_flow_data->drawing->pixmap);
GdkGC *gc = gdk_gc_new(control_flow_data->drawing->pixmap);
- gdk_gc_copy(gc, widget->style->black_gc);
-
+ gdk_gc_copy(gc, widget->style->white_gc);
+ gdk_gc_set_line_attributes(gc,
+ 1,
+ GDK_LINE_ON_OFF_DASH,
+ GDK_CAP_BUTT,
+ GDK_JOIN_MITER);
+ gdk_gc_set_dashes(gc,
+ 0,
+ dash_list,
+ 2);
drawing_draw_line(NULL, widget->window,
x, event->area.y,
x, event->area.y+event->area.height,
drawing_draw_line(NULL, widget->window,
x, event->area.y,
x, event->area.y+event->area.height,
@@
-571,7
+580,7
@@
void drawing_insert_square(Drawing_t *drawing,
/* add an empty square */
gdk_draw_rectangle (pixmap,
/* add an empty square */
gdk_draw_rectangle (pixmap,
- drawing->drawing_area->style->
white
_gc,
+ drawing->drawing_area->style->
black
_gc,
TRUE,
0, y,
drawing->width + SAFETY, // do not overlap
TRUE,
0, y,
drawing->width + SAFETY, // do not overlap
This page took
0.023482 seconds
and
4
git commands to generate.