mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 20:05:29 +00:00
2004-02-12 Mike Kestner <mkestner@ximian.com>
* glade/Glade.metadata : hide a GList method. * glade/Makefile.in : run gapi-fixup * glade/XML.custom : return Widget[] from GetWidgetPrefix. * glade/glade-api.xml : regen * pango/Pango.metadata : hide a dubious GList method. * pango/pango-api.xml : regen svn path=/trunk/gtk-sharp/; revision=23043
This commit is contained in:
parent
f555d60a7a
commit
bba2334f84
|
@ -1,3 +1,12 @@
|
|||
2004-02-12 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* glade/Glade.metadata : hide a GList method.
|
||||
* glade/Makefile.in : run gapi-fixup
|
||||
* glade/XML.custom : return Widget[] from GetWidgetPrefix.
|
||||
* glade/glade-api.xml : regen
|
||||
* pango/Pango.metadata : hide a dubious GList method.
|
||||
* pango/pango-api.xml : regen
|
||||
|
||||
2004-02-12 Ben Maurer <bmaurer@users.sourceforge.net>
|
||||
|
||||
* gtk/TreeIter.custom: Make the hash here not collide.
|
||||
|
|
4
glade/Glade.metadata
Normal file
4
glade/Glade.metadata
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace/object[@cname='GladeXML']/method[@name='GetWidgetPrefix']" name="hidden">1</attr>
|
||||
</metadata>
|
|
@ -14,7 +14,8 @@ ASSEMBLY=glade-sharp.dll
|
|||
@ENABLE_GLADE_TRUE@ all: $(ASSEMBLY)
|
||||
@ENABLE_GLADE_FALSE@ all:
|
||||
|
||||
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe
|
||||
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe ../parser/gapi-fixup.exe Glade.metadata
|
||||
$(RUNTIME) ../parser/gapi-fixup.exe --api=glade-api.xml --metadata=Glade.metadata && \
|
||||
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
||||
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
||||
--assembly-name=glade-sharp && touch generated-stamp
|
||||
|
|
|
@ -320,3 +320,19 @@
|
|||
return new Glade.XML (
|
||||
System.Reflection.Assembly.GetCallingAssembly (), resource_name, root, domain);
|
||||
}
|
||||
|
||||
[DllImport("libglade-2.0-0.dll")]
|
||||
static extern IntPtr glade_xml_get_widget_prefix(IntPtr raw, string name);
|
||||
|
||||
public Gtk.Widget[] GetWidgetPrefix(string name)
|
||||
{
|
||||
IntPtr raw_ret = glade_xml_get_widget_prefix(Handle, name);
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
return new Gtk.Widget [0];
|
||||
GLib.List list = new GLib.List (raw_ret);
|
||||
Gtk.Widget[] result = new Gtk.Widget [list.Count];
|
||||
int i = 0;
|
||||
foreach (Gtk.Widget w in list)
|
||||
result [i++] = w;
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<!--
|
||||
<api><!--
|
||||
|
||||
This file was automatically generated.
|
||||
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
|
||||
|
@ -94,7 +93,7 @@
|
|||
<parameter type="const-char*" name="name" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetWidgetPrefix" cname="glade_xml_get_widget_prefix">
|
||||
<method name="GetWidgetPrefix" cname="glade_xml_get_widget_prefix" hidden="1">
|
||||
<return-type type="GList*" />
|
||||
<parameters>
|
||||
<parameter type="const-char*" name="name" />
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ReorderItems']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetLines']/return-type" name="element_type">Pango.LayoutLine</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetPixelSize']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetSize']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
|
|
|
@ -1473,7 +1473,7 @@
|
|||
<parameter type="GString*" name="str" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="ReorderItems" cname="pango_reorder_items" shared="true">
|
||||
<method name="ReorderItems" cname="pango_reorder_items" shared="true" hidden="1">
|
||||
<return-type type="GList*" />
|
||||
<parameters>
|
||||
<parameter type="GList*" name="logical_items" />
|
||||
|
|
Loading…
Reference in a new issue