mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-02-28 12:36:56 +00:00
2003-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* api/gdk-api.xml: * sources/Gdk.metadata: hide GdkColormap.AllocColor. * gdk/Colormap.custom: AllocColor is here. * gconf/tools/schemagen.cs: XmlDocument.Load (string) takes an Uri. svn path=/trunk/gtk-sharp/; revision=12055
This commit is contained in:
parent
ae21ffa9f2
commit
5fa688fb04
|
@ -1,3 +1,12 @@
|
||||||
|
2003-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
|
||||||
|
|
||||||
|
* api/gdk-api.xml:
|
||||||
|
* sources/Gdk.metadata: hide GdkColormap.AllocColor.
|
||||||
|
|
||||||
|
* gdk/Colormap.custom: AllocColor is here.
|
||||||
|
|
||||||
|
* gconf/tools/schemagen.cs: XmlDocument.Load (string) takes an Uri.
|
||||||
|
|
||||||
2003-02-28 Miguel de Icaza <miguel@ximian.com>
|
2003-02-28 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* gdk/Color.custom: Added constructors from System.Drawing.Color
|
* gdk/Color.custom: Added constructors from System.Drawing.Color
|
||||||
|
|
|
@ -490,7 +490,7 @@
|
||||||
<field cname="colors" type="GdkColor*"/>
|
<field cname="colors" type="GdkColor*"/>
|
||||||
<field cname="visual" type="GdkVisual*"/>
|
<field cname="visual" type="GdkVisual*"/>
|
||||||
<field cname="windowing_data" type="gpointer"/>
|
<field cname="windowing_data" type="gpointer"/>
|
||||||
<method name="AllocColor" cname="gdk_colormap_alloc_color">
|
<method name="AllocColor" cname="gdk_colormap_alloc_color" hidden="1">
|
||||||
<return-type type="gboolean"/>
|
<return-type type="gboolean"/>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter type="GdkColor*" name="color"/>
|
<parameter type="GdkColor*" name="color"/>
|
||||||
|
|
|
@ -27,7 +27,9 @@ namespace GConf.Tools
|
||||||
{
|
{
|
||||||
XmlDocument doc = new XmlDocument ();
|
XmlDocument doc = new XmlDocument ();
|
||||||
try {
|
try {
|
||||||
doc.Load (filename);
|
Stream stream = File.OpenRead (filename);
|
||||||
|
doc.Load (stream);
|
||||||
|
stream.Close ();
|
||||||
} catch (XmlException e) {
|
} catch (XmlException e) {
|
||||||
Die ("Could not parse " + filename);
|
Die ("Could not parse " + filename);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,18 @@
|
||||||
[DllImport("libgdk-win32-2.0-0.dll", EntryPoint="gdk_colormap_alloc_color")]
|
// Gdk.Color.custom - Gdk Color class customizations
|
||||||
static extern bool _gdk_colormap_alloc_color(IntPtr raw, ref Gdk.Color color, bool writeable, bool best_match);
|
//
|
||||||
|
// Authors:
|
||||||
|
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
|
||||||
|
//
|
||||||
|
// (c) 2003 Ximian, Inc. (gonzalo@ximian.com)
|
||||||
|
//
|
||||||
|
// This code is inserted after the automatically generated code.
|
||||||
|
|
||||||
public bool AllocColor(ref Gdk.Color color, bool writeable, bool best_match)
|
|
||||||
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||||
|
static extern bool gdk_colormap_alloc_color(IntPtr raw, ref Gdk.Color color, bool writeable, bool best_match);
|
||||||
|
|
||||||
|
public bool AllocColor (ref Gdk.Color color, bool writeable, bool best_match)
|
||||||
{
|
{
|
||||||
bool raw_ret = _gdk_colormap_alloc_color(Handle, ref color, writeable, best_match);
|
return gdk_colormap_alloc_color (Handle, ref color, writeable, best_match);
|
||||||
bool ret = raw_ret;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,17 @@
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GdkColormap">
|
||||||
|
<method>AllocColor</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>hidden</name>
|
||||||
|
<value>1</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
|
|
||||||
<rule>
|
<rule>
|
||||||
<class name="GdkPixbufLoader">
|
<class name="GdkPixbufLoader">
|
||||||
|
@ -160,5 +171,4 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
Loading…
Reference in a new issue