From 8f33514940cfd7dc539ff8a0ca207a029b15a4b9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 13 Dec 2020 12:53:08 +0100 Subject: binding tests + wip --- Samples/DebugLogAnalyzer/DbgEventWidget.cs | 2 +- Samples/DebugLogAnalyzer/DbgLogViewer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Samples/DebugLogAnalyzer') diff --git a/Samples/DebugLogAnalyzer/DbgEventWidget.cs b/Samples/DebugLogAnalyzer/DbgEventWidget.cs index 1528e205..b2af84dd 100644 --- a/Samples/DebugLogAnalyzer/DbgEventWidget.cs +++ b/Samples/DebugLogAnalyzer/DbgEventWidget.cs @@ -97,7 +97,7 @@ namespace Crow ctx.SetSource (dbge.Color); if (dbge.IsSelected) { ctx.FillPreserve (); - ctx.SetSourceRGB (1, 1, 1); + ctx.SetSource (1, 1, 1); ctx.Stroke (); }else ctx.Fill (); diff --git a/Samples/DebugLogAnalyzer/DbgLogViewer.cs b/Samples/DebugLogAnalyzer/DbgLogViewer.cs index 4b7a108a..0d6bdfa9 100644 --- a/Samples/DebugLogAnalyzer/DbgLogViewer.cs +++ b/Samples/DebugLogAnalyzer/DbgLogViewer.cs @@ -295,7 +295,7 @@ namespace Crow if (g.yIndex == 0) gr.SetSource (Crow.Colors.LightSalmon); else - Foreground.SetAsSource (gr); + Foreground.SetAsSource (IFace, gr); gr.MoveTo (penX, penY - gr.FontExtents.Descent); gr.ShowText (g.name + gIdx); @@ -399,7 +399,7 @@ namespace Crow r = new Rectangle (cb.Left, (int)y, cb.Width, (int)fe.Height); ctx.Operator = Cairo.Operator.Add; - ctx.SetSourceRGBA (0.1, 0.1, 0.1, 0.4); + ctx.SetSource (0.1, 0.1, 0.1, 0.4); ctx.Rectangle (ContextCoordinates (r)); ctx.Fill (); } -- cgit v1.3.1-4-g156e