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 // Happy coding!!! - GtkSharp Team
using Gtk; using Gtk;
using Gtk.Source;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@ -55,7 +56,7 @@ namespace Samples
_notebook.AppendPage(scroll1, new Label { Text = "Data", Expand = true }); _notebook.AppendPage(scroll1, new Label { Text = "Data", Expand = true });
var scroll2 = new ScrolledWindow(); var scroll2 = new ScrolledWindow();
_textViewCode = new TextView(); _textViewCode = new GtkSourceView();
_textViewCode.Margin = 3; _textViewCode.Margin = 3;
scroll2.Child = _textViewCode; scroll2.Child = _textViewCode;
_notebook.AppendPage(scroll2, new Label { Text = "Code", Expand = true }); _notebook.AppendPage(scroll2, new Label { Text = "Code", Expand = true });

View File

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