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:
Mike Kestner 2004-02-12 21:40:01 +00:00
parent f555d60a7a
commit bba2334f84
7 changed files with 211 additions and 181 deletions

View file

@ -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
View 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>

View file

@ -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

View file

@ -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;
}

View file

@ -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" />

View file

@ -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>

View file

@ -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" />