mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-30 09:38:37 +02:00
Changed samples project to show code in sourceview.
This commit is contained in:
parent
9b52ca0713
commit
865bd0dac4
@ -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 New Issue
Block a user