[planner] Setting the width of the dashed lines to 1 (from 0)
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner] Setting the width of the dashed lines to 1 (from 0)
- Date: Wed, 19 Apr 2017 14:40:23 +0000 (UTC)
commit e479410af83c2fd6a8cde3ae00a56f19bd8d7cf7
Author: Andrew Miloradovsky <miloradovsky gmail com>
Date: Sat Dec 10 05:30:49 2016 +0000
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.
src/planner-gantt-background.c | 4 ++--
src/planner-gantt-row.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/planner-gantt-background.c b/src/planner-gantt-background.c
index ed21de9..806e311 100644
--- a/src/planner-gantt-background.c
+++ b/src/planner-gantt-background.c
@@ -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);
diff --git a/src/planner-gantt-row.c b/src/planner-gantt-row.c
index a981d10..c954098 100644
--- a/src/planner-gantt-row.c
+++ b/src/planner-gantt-row.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]