Commit e479410a authored by Andrew Miloradovsky's avatar Andrew Miloradovsky Committed by Alexandre Franke

Setting the width of the dashed lines to 1 (from 0)

Zero-width lines, when used together with non-solid line-styles,
cause problems on some systems, e.g. Nix OS.
parent 5f9db00b
......@@ -389,7 +389,7 @@ gantt_background_realize (GnomeCanvasItem *item)
priv->timeline_gc = gdk_gc_new (item->canvas->layout.bin_window);
gdk_gc_set_foreground (priv->timeline_gc, &color);
gdk_gc_set_line_attributes (priv->timeline_gc,
0,
1,
GDK_LINE_ON_OFF_DASH,
GDK_CAP_BUTT,
GDK_JOIN_MITER);
......@@ -398,7 +398,7 @@ gantt_background_realize (GnomeCanvasItem *item)
priv->start_gc = gdk_gc_new (item->canvas->layout.bin_window);
gdk_gc_set_foreground (priv->start_gc, &color);
gdk_gc_set_line_attributes (priv->start_gc,
0,
1,
GDK_LINE_ON_OFF_DASH,
GDK_CAP_BUTT,
GDK_JOIN_MITER);
......
......@@ -942,7 +942,7 @@ static void
gantt_row_setup_frame_gc (PlannerGanttRow *row, gboolean highlight)
{
gdk_gc_set_line_attributes (row->priv->frame_gc,
0,
1,
highlight ? GDK_LINE_ON_OFF_DASH : GDK_LINE_SOLID,
GDK_CAP_BUTT,
GDK_JOIN_MITER);
......@@ -1788,7 +1788,7 @@ gantt_row_draw (GnomeCanvasItem *item,
gdk_gc_set_foreground (priv->frame_gc, &color);
gdk_gc_set_line_attributes (priv->frame_gc,
0,
1,
GDK_LINE_ON_OFF_DASH,
GDK_CAP_BUTT,
GDK_JOIN_MITER);
......@@ -1857,7 +1857,7 @@ gantt_row_draw (GnomeCanvasItem *item,
gdk_gc_set_foreground (priv->frame_gc, &color);
gdk_gc_set_line_attributes (priv->frame_gc,
0,
1,
GDK_LINE_ON_OFF_DASH,
GDK_CAP_BUTT,
GDK_JOIN_MITER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment