From 865bd0dac42aa9d40bc36b644d0236704094aa86 Mon Sep 17 00:00:00 2001 From: Drew Holzworth Date: Tue, 7 Jul 2020 10:08:21 +1000 Subject: [PATCH] Changed samples project to show code in sourceview. --- Source/Samples/MainWindow.cs | 3 ++- Source/Samples/Samples.csproj | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Samples/MainWindow.cs b/Source/Samples/MainWindow.cs index 6dad94535..724a78d6f 100644 --- a/Source/Samples/MainWindow.cs +++ b/Source/Samples/MainWindow.cs @@ -2,6 +2,7 @@ // Happy coding!!! - GtkSharp Team using Gtk; +using Gtk.Source; using System; using System.Collections.Generic; using System.IO; @@ -55,7 +56,7 @@ namespace Samples _notebook.AppendPage(scroll1, new Label { Text = "Data", Expand = true }); var scroll2 = new ScrolledWindow(); - _textViewCode = new TextView(); + _textViewCode = new GtkSourceView(); _textViewCode.Margin = 3; scroll2.Child = _textViewCode; _notebook.AppendPage(scroll2, new Label { Text = "Code", Expand = true }); diff --git a/Source/Samples/Samples.csproj b/Source/Samples/Samples.csproj index 500b5ef9f..ba36e22dd 100644 --- a/Source/Samples/Samples.csproj +++ b/Source/Samples/Samples.csproj @@ -25,5 +25,6 @@ +