mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:35:27 +00:00
restructuring for gtk-sharp/gnome-sharp split
svn path=/trunk/gtk-sharp/; revision=63082
This commit is contained in:
parent
d09ebd1d3b
commit
d264bb5116
|
@ -1,15 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<metadata>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']" name="disable_void_ctor">1</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']/constructor[@cname='gtk_html_new']" name="hidden">1</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']/constructor[@cname='gtk_html_new_from_string']" name="hidden">1</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']/signal[@name='Command']" name="name">OnCommand</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']/method[@name='BeginContent']" name="name">Begin</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkHTML']/method[@name='BeginFull']" name="name">Begin</attr>
|
|
||||||
<attr path="/api/namespace/struct[@cname='GtkHTMLStream']/field" name="access">private</attr>
|
|
||||||
<attr path="/api/namespace/struct[@cname='GtkHTMLStream']/method[@name='Destroy']" name="hidden">1</attr>
|
|
||||||
<attr path="/api/namespace/struct[@cname='GtkHTMLStream']/method[@name='Write']/*/*[@name='buffer']" name="type">const-guchar*</attr>
|
|
||||||
<attr path="/api/namespace/struct[@cname='GtkHTMLStream']/method[@name='Write']/*/*[@name='buffer']" name="array">1</attr>
|
|
||||||
</metadata>
|
|
||||||
|
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
// Gtk.HTML.custom - Gtk HTML class customizations
|
|
||||||
//
|
|
||||||
// Author: Mike Kestner <mkestner@ximian.com>
|
|
||||||
//
|
|
||||||
// Copyright (C) 2004 Novell, Inc.
|
|
||||||
//
|
|
||||||
// This code is inserted after the automatically generated code.
|
|
||||||
//
|
|
||||||
// This program is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of version 2 of the Lesser GNU General
|
|
||||||
// Public License as published by the Free Software Foundation.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this program; if not, write to the
|
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
// Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
[DllImport("gtkhtml-3.0")]
|
|
||||||
static extern IntPtr gtk_html_new();
|
|
||||||
|
|
||||||
public HTML () : base (IntPtr.Zero)
|
|
||||||
{
|
|
||||||
if (GetType () != typeof (HTML)) {
|
|
||||||
CreateNativeObject (new string [0], new GLib.Value[0]);
|
|
||||||
Construct (this);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Raw = gtk_html_new();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DllImport("gtkhtml-3.0")]
|
|
||||||
static extern IntPtr gtk_html_new_from_string(IntPtr Astr, int len);
|
|
||||||
|
|
||||||
public HTML (string Astr) : base (IntPtr.Zero)
|
|
||||||
{
|
|
||||||
if (GetType () != typeof (HTML)) {
|
|
||||||
CreateNativeObject (new string [0], new GLib.Value[0]);
|
|
||||||
Construct (this);
|
|
||||||
LoadFromString (Astr);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (Astr);
|
|
||||||
Raw = gtk_html_new_from_string (native, -1);
|
|
||||||
GLib.Marshaller.Free (native);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Write (HTMLStream handle, string buffer, int size)
|
|
||||||
{
|
|
||||||
Write (handle, buffer, (ulong) size);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
// HTMLStream.custom - customizations to Gtk.HTMLStream
|
|
||||||
//
|
|
||||||
// Author: Mike Kestner <mkestner@ximian.com>
|
|
||||||
//
|
|
||||||
// Copyright (C) 2003 Novell, Inc.
|
|
||||||
//
|
|
||||||
// This program is free software; you can redistribute it and/or
|
|
||||||
// modify it under the terms of version 2 of the Lesser GNU General
|
|
||||||
// Public License as published by the Free Software Foundation.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this program; if not, write to the
|
|
||||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
// Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
|
|
||||||
public void Write (byte[] buffer, int size)
|
|
||||||
{
|
|
||||||
Write (buffer, (ulong) size);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Write (string buffer)
|
|
||||||
{
|
|
||||||
byte [] bytes = System.Text.Encoding.UTF8.GetBytes (buffer);
|
|
||||||
|
|
||||||
gtk_html_stream_write (Handle, bytes, new UIntPtr ((ulong)bytes.Length));
|
|
||||||
}
|
|
||||||
|
|
||||||
// We hide this method and then reimplement it by hand to keep OpaqueGen from using
|
|
||||||
// it in Dispose(), since calling it after a Close() will result in a crash.
|
|
||||||
|
|
||||||
[DllImport("gtkhtml-3.0")]
|
|
||||||
static extern void gtk_html_stream_destroy (IntPtr stream);
|
|
||||||
|
|
||||||
public void Destroy ()
|
|
||||||
{
|
|
||||||
gtk_html_stream_destroy (Handle);
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
if ENABLE_GTKHTML
|
|
||||||
pkg = gtkhtml
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
|
||||||
pkgconfig_DATA = gtkhtml-sharp-2.0.pc
|
|
||||||
else
|
|
||||||
pkg =
|
|
||||||
endif
|
|
||||||
INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gtk/gtk-api.xml ../art/art-api.xml ../gnome/gnome-api.xml
|
|
||||||
METADATA = Gtk.metadata
|
|
||||||
SYMBOLS =
|
|
||||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll ../art/art-sharp.dll ../gnome/gnome-sharp.dll
|
|
||||||
|
|
||||||
sources =
|
|
||||||
|
|
||||||
customs = \
|
|
||||||
HTML.custom \
|
|
||||||
HTMLStream.custom
|
|
||||||
|
|
||||||
add_dist = gtkhtml-sharp-2.0.pc.in
|
|
||||||
|
|
||||||
include ../Makefile.include
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,12 +0,0 @@
|
||||||
prefix=${pcfiledir}/../..
|
|
||||||
exec_prefix=${prefix}
|
|
||||||
libdir=${exec_prefix}/lib
|
|
||||||
gapidir=${prefix}/share/gapi-2.0
|
|
||||||
|
|
||||||
|
|
||||||
Name: Gtkhtml#
|
|
||||||
Description: Gtkhtml# - Gtkhtml .NET Binding
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires: gnome-sharp-2.0
|
|
||||||
Cflags: -I:${gapidir}/gtkhtml-api.xml
|
|
||||||
Libs: -r:${libdir}/mono/@PACKAGE_VERSION@/gtkhtml-sharp.dll
|
|
|
@ -1,4 +0,0 @@
|
||||||
<configuration>
|
|
||||||
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
|
||||||
<dllmap dll="gtkhtml-3.0" target="libgtkhtml-@GTKHTML_VERSION@@LIB_PREFIX@.@GTKHTML_SOVERSION@@LIB_SUFFIX@"/>
|
|
||||||
</configuration>
|
|
Loading…
Reference in a new issue