Bug 497071: [GTK] StyledText and Link create different colored links

Backport Photon fix into Oxygen.

Change-Id: I9e0b663d163d969473a8681e8836167b0453b754
Signed-off-by: Eric Williams <ericwill@redhat.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
index c241e75..156f878 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
@@ -216,7 +216,9 @@
 					break;
 				case SWT.UNDERLINE_LINK: {
 					if (style.foreground == null) {
-						long /*int*/ attr = OS.pango_attr_foreground_new((short)0, (short)0x3333, (short)0x9999);
+						// Bug 497071: use COLOR_LINK_FOREGROUND for StyledText links
+						GdkColor linkColor = device.getSystemColor(SWT.COLOR_LINK_FOREGROUND).handle;
+						long /*int*/ attr = OS.pango_attr_foreground_new(linkColor.red, linkColor.green, linkColor.blue);
 						OS.memmove (attribute, attr, PangoAttribute.sizeof);
 						attribute.start_index = byteStart;
 						attribute.end_index = byteEnd;