diff --git a/Source/Libs/Shared/GLibrary.cs b/Source/Libs/Shared/GLibrary.cs index 38020ce26..68e36ea2c 100644 --- a/Source/Libs/Shared/GLibrary.cs +++ b/Source/Libs/Shared/GLibrary.cs @@ -27,7 +27,7 @@ class GLibrary _libraryDefinitions[Library.GdkPixbuf] = new[] { "libgdk_pixbuf-2.0-0.dll", "libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.dylib", "gdk_pixbuf-2.dll" }; _libraryDefinitions[Library.Gtk] = new[] { "libgtk-3-0.dll", "libgtk-3.so.0", "libgtk-3.0.dylib", "gtk-3.dll" }; _libraryDefinitions[Library.PangoCairo] = new[] { "libpangocairo-1.0-0.dll", "libpangocairo-1.0.so.0", "libpangocairo-1.0.0.dylib", "pangocairo-1.dll" }; - _libraryDefinitions[Library.Source] = new[] { "libgtksourceview-4-0.dll", "libgtksourceview-4.so.0", "libgtksourceview-4.0.dylib", "gtksourceview-4.dll" }; + _libraryDefinitions[Library.GtkSource] = new[] { "libgtksourceview-4-0.dll", "libgtksourceview-4.so.0", "libgtksourceview-4.0.dylib", "gtksourceview-4.dll" }; } public static IntPtr Load(Library library) diff --git a/Source/Libs/Shared/Library.cs b/Source/Libs/Shared/Library.cs index 0e2ad9410..b47e74888 100644 --- a/Source/Libs/Shared/Library.cs +++ b/Source/Libs/Shared/Library.cs @@ -11,5 +11,5 @@ enum Library Gdk, GdkPixbuf, Gtk, - Source + GtkSource } \ No newline at end of file diff --git a/Source/Libs/SourceView/Buffer.cs b/Source/Libs/SourceView/Buffer.cs new file mode 100644 index 000000000..daf62c0b5 --- /dev/null +++ b/Source/Libs/SourceView/Buffer.cs @@ -0,0 +1,12 @@ +namespace GtkSource +{ + using System; + public partial class Buffer : Gtk.TextBuffer + { + public Buffer() : base(IntPtr.Zero) + { + owned = true; + Raw = gtk_source_buffer_new(IntPtr.Zero); + } + } +} diff --git a/Source/Libs/SourceView/GtkSourceBuffer.cs b/Source/Libs/SourceView/GtkSourceBuffer.cs deleted file mode 100644 index 30bca91ba..000000000 --- a/Source/Libs/SourceView/GtkSourceBuffer.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Gtk.Source -{ - using System; - public partial class GtkSourceBuffer : Gtk.TextBuffer - { - public GtkSourceBuffer() : base(IntPtr.Zero) - { - owned = true; - Raw = gtk_source_buffer_new(IntPtr.Zero); - } - } -} diff --git a/Source/Libs/SourceView/SourceView-api.xml b/Source/Libs/SourceView/SourceView-api.xml index 45b5682ab..47ff74d96 100644 --- a/Source/Libs/SourceView/SourceView-api.xml +++ b/Source/Libs/SourceView/SourceView-api.xml @@ -6,37 +6,37 @@ Please DO NOT MODIFY THIS FILE, modify .metadata files instead. --> - - + + - + - + - + - + - + - + @@ -44,62 +44,62 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -107,18 +107,18 @@ - + - + - + @@ -211,7 +211,7 @@ - + @@ -361,7 +361,7 @@ - + @@ -405,7 +405,7 @@ - + @@ -436,7 +436,7 @@ - + @@ -508,7 +508,7 @@ - + @@ -759,7 +759,7 @@ - + @@ -768,7 +768,7 @@ - + @@ -776,7 +776,7 @@ - + @@ -892,12 +892,12 @@ - + - + @@ -932,7 +932,7 @@ - + @@ -950,7 +950,7 @@ - + @@ -1013,7 +1013,7 @@ - + @@ -1107,7 +1107,7 @@ - + @@ -1116,7 +1116,7 @@ - + @@ -1173,7 +1173,7 @@ - + @@ -1249,7 +1249,7 @@ - + @@ -1346,7 +1346,7 @@ - + @@ -1394,7 +1394,7 @@ - + @@ -1634,7 +1634,7 @@ - + @@ -1644,7 +1644,7 @@ - + @@ -1653,7 +1653,7 @@ - + @@ -1694,7 +1694,7 @@ - + @@ -1737,7 +1737,7 @@ - + @@ -1790,7 +1790,7 @@ - + @@ -1831,7 +1831,7 @@ - + @@ -1852,7 +1852,7 @@ - + @@ -1884,14 +1884,14 @@ - + - + @@ -1976,7 +1976,7 @@ - + @@ -2190,7 +2190,7 @@ - + @@ -2323,7 +2323,7 @@ - + @@ -2384,7 +2384,7 @@ - + @@ -2436,7 +2436,7 @@ - + @@ -2471,7 +2471,7 @@ - + @@ -2506,7 +2506,7 @@ - + @@ -2519,7 +2519,7 @@ - + @@ -2532,7 +2532,7 @@ - + @@ -2581,7 +2581,7 @@ - + @@ -2601,7 +2601,7 @@ - + @@ -2874,7 +2874,7 @@ - + @@ -2885,9 +2885,9 @@ - - - + + + @@ -2925,7 +2925,7 @@ - + @@ -2965,8 +2965,8 @@ - - + + @@ -2984,8 +2984,8 @@ - - + + @@ -2996,5 +2996,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Source/Libs/SourceView/SourceView.metadata b/Source/Libs/SourceView/SourceView.metadata index 015d20b96..ed1fea2dd 100644 --- a/Source/Libs/SourceView/SourceView.metadata +++ b/Source/Libs/SourceView/SourceView.metadata @@ -4,8 +4,8 @@ UndoFired SmartHomeEndFired Activated - true - true + true + true Hidden ActivatableQueried DataQueried @@ -25,21 +25,21 @@ - Library.Source - GtkSourceMark - GtkSourceMark - GtkSourceCompletionProvider - GtkSourceEncoding - GtkSourceEncoding + Mark + Mark + CompletionProvider + Encoding + Encoding notify async notify async async async - + + SourceView 1 - + Library.GtkSource \ No newline at end of file diff --git a/Source/Libs/SourceView/SourceView.source b/Source/Libs/SourceView/SourceView.source index e1730d22c..81c3d64d8 100644 --- a/Source/Libs/SourceView/SourceView.source +++ b/Source/Libs/SourceView/SourceView.source @@ -1,7 +1,7 @@ - + gtksourceview-4.0.0/gtksourceview diff --git a/Source/Libs/SourceView/generate.sh b/Source/Libs/SourceView/generate.sh index 35a7172ed..36bb9827c 100755 --- a/Source/Libs/SourceView/generate.sh +++ b/Source/Libs/SourceView/generate.sh @@ -2,7 +2,6 @@ outdir=Generated sourcever=4.0.0 -clear wget http://ftp.acc.umu.se/pub/GNOME/sources/gtksourceview/4.0/gtksourceview-$sourcever.tar.xz tar xf gtksourceview-$sourcever.tar.xz @@ -13,9 +12,5 @@ fi ../../OldStuff/parser/gapi3-parser SourceView.source -dotnet ../../../BuildOutput/Tools/GapiFixup.dll --api=SourceView-api.xml --metadata=SourceView.metadata -dotnet ../../../BuildOutput/Tools/GapiCodegen.dll --outdir=$outdir --assembly-name=SourceView `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml -dotnet build -v m - rm gtksourceview-$sourcever.tar.xz rm -rf gtksourceview-$sourcever diff --git a/Source/Samples/MainWindow.cs b/Source/Samples/MainWindow.cs index 724a78d6f..2518c7796 100644 --- a/Source/Samples/MainWindow.cs +++ b/Source/Samples/MainWindow.cs @@ -2,7 +2,7 @@ // Happy coding!!! - GtkSharp Team using Gtk; -using Gtk.Source; +using GtkSource; using System; using System.Collections.Generic; using System.IO; @@ -56,7 +56,7 @@ namespace Samples _notebook.AppendPage(scroll1, new Label { Text = "Data", Expand = true }); var scroll2 = new ScrolledWindow(); - _textViewCode = new GtkSourceView(); + _textViewCode = new SourceView(); _textViewCode.Margin = 3; scroll2.Child = _textViewCode; _notebook.AppendPage(scroll2, new Label { Text = "Code", Expand = true });