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
|
// 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 });
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue