Initial commit of sourceview files.

This commit is contained in:
Drew Holzworth 2020-07-02 15:09:23 +10:00
parent 3b90cbf9f2
commit b6b806ac80
No known key found for this signature in database
GPG key ID: 931DFD9C2A605512
6 changed files with 1288 additions and 0 deletions

View file

@ -0,0 +1,13 @@
namespace GtkSharp.SourceView
{
using System;
public partial class GtkSourceBuffer : Gtk.TextBuffer
{
public GtkSourceBuffer() : base(IntPtr.Zero)
{
owned = true;
Raw = gtk_source_buffer_new(IntPtr.Zero);
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
<Description>SourceView is a C# wrapper for the GtkSourceView library.</Description>
<PackageTags>sourceview;sourceviewsharp;sourceview-sharp;wrapper</PackageTags>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GtkSharp" Version="3.22.25.56" />
</ItemGroup>
<!--<ItemGroup>
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererLines.cs" />
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererMarks.cs" />
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererPixbuf.cs" />
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceGutterRendererText.cs" />
<Compile Remove="Generated/GtkSharp.SourceView/GtkSourceUndoManagerDefault.cs" />
</ItemGroup>-->
<ItemGroup>
<None Remove="SourceView-api.xml" />
<None Remove="SourceView.metadata" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,31 @@
<?xml version="1.0"?>
<metadata>
<attr path="/api/namespace/object[@cname='GtkSourceBuffer']/signal[@name='Redo']" name="name">RedoFired</attr>
<attr path="/api/namespace/object[@cname='GtkSourceBuffer']/signal[@name='Undo']" name="name">UndoFired</attr>
<attr path="/api/namespace/object[@cname='GtkSourceView']/signal[@name='SmartHomeEnd']" name="name">SmartHomeEndFired</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='Activate']" name="name">Activated</attr>
<attr path="/api/namespace/object[@name='GtkSourceView']/implements/interface[@cname='GtkBuildable']" name="hidden">true</attr>
<attr path="/api/namespace/object[@name='GtkSourceCompletion']/implements/interface[@cname='GtkBuildable']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceCompletion']/signal[@name='Hide']" name="name">Hidden</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueryActivatable']" name="name">ActivatableQueried</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueryData']" name="name">DataQueried</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueryTooltip']" name="name">TooltipQueried</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRenderer']/signal[@name='QueueDraw']" name="name">DrawQueued</attr>
<attr path="/api/namespace/interface[@cname='GtkSourceCompletionProposal']/method[@name='Changed']" name="name">EmitChanged</attr>
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/method[@name='CanRedoChanged']" name="name">EmitCanRedoChanged</attr>
<attr path="/api/namespace/interface[@cname='GtkSourceUndoManager']/method[@name='CanUndoChanged']" name="name">EmitCanUndoChanged</attr>
<remove-node path="/api/namespace/interface[@cname='GtkSourceStyleSchemeChooser']/class_struct[@cname='GtkSourceStyleSchemeChooserInterface']/method[@vm='get_style_scheme']" />
<remove-node path="/api/namespace/interface[@cname='GtkSourceStyleSchemeChooser']/class_struct[@cname='GtkSourceStyleSchemeChooserInterface']/method[@vm='set_style_scheme']" />
<remove-node path="/api/namespace/object[@cname='GtkSourceCompletionModel']" />
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererLines']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererMarks']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererPixbuf']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceGutterRendererText']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceUndoManagerDefault']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='match_start']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='match_end']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Backward']/*/*[@name='has_wrapped_around']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='match_start']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='match_end']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkSourceSearchContext']/method[@name='Forward']/*/*[@name='has_wrapped_around']" name="pass_as">out</attr>
</metadata>

View file

@ -0,0 +1,9 @@
<gapi-parser-input>
<api filename="SourceView-api.raw">
<library name="libgtksourceview-4.so">
<namespace name="Gtk.SourceView">
<dir>gtksourceview-4.0.0/gtksourceview</dir>
</namespace>
</library>
</api>
</gapi-parser-input>

View file

@ -0,0 +1,12 @@
#!/usr/bin/bash
wget http://ftp.acc.umu.se/pub/GNOME/sources/gtksourceview/4.0/gtksourceview-4.0.0.tar.xz
tar xf gtksourceview-4.0.0.tar.xz
gapi3-parser SourceView.source
gapi3-fixup --api=SourceView-api.xml --metadata=SourceView.metadata
gapi3-codegen --outdir=Generated `pkg-config --cflags gtk-sharp-3.0` --generate SourceView-api.xml
dotnet build
rm gtksourceview-4.0.0.tar.xz
rm -rf gtksourceview-4.0.0