Changed samples project to show code in sourceview.
This commit is contained in:
parent
9b52ca0713
commit
865bd0dac4
2 changed files with 3 additions and 1 deletions
|
@ -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 });
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue