Changed samples project to show code in sourceview.

This commit is contained in:
Drew Holzworth 2020-07-07 10:08:21 +10:00
parent 9b52ca0713
commit 865bd0dac4
No known key found for this signature in database
GPG key ID: 931DFD9C2A605512
2 changed files with 3 additions and 1 deletions

View file

@ -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 });

View file

@ -25,5 +25,6 @@
<ProjectReference Include="..\Libs\GLibSharp\GLibSharp.csproj" />
<ProjectReference Include="..\Libs\GtkSharp\GtkSharp.csproj" />
<ProjectReference Include="..\Libs\PangoSharp\PangoSharp.csproj" />
<ProjectReference Include="..\Libs\SourceView\SourceView.csproj" />
</ItemGroup>
</Project>