2005-06-06 Mike Kestner <mkestner@novell.com>
* Makefile.include : depend on gapi-fixup.exe for the api target. * parser/gapi-fixup.cs : remove-node rule handling. svn path=/trunk/gtk-sharp/; revision=45502
This commit is contained in:
parent
5743ba2da8
commit
8f032b793e
3 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-06 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* Makefile.include : depend on gapi-fixup.exe for the api target.
|
||||
* parser/gapi-fixup.cs : remove-node rule handling.
|
||||
|
||||
2005-06-06 Dan Winship <danw@novell.com>
|
||||
|
||||
* sample/GtkDemo/DemoRotatedText.cs (RotatedTextExposeEvent): Use
|
||||
|
|
|
@ -17,7 +17,7 @@ EXTRA_DIST = $(RAW_API) $(SYMBOLS) $(ASSEMBLY).config.in $(METADATA) $(customs)
|
|||
|
||||
build_symbols = $(addprefix --symbols=$(srcdir)/, $(SYMBOLS))
|
||||
|
||||
$(API): $(METADATA) $(RAW_API) $(SYMBOLS)
|
||||
$(API): $(METADATA) $(RAW_API) $(SYMBOLS) $(top_builddir)/parser/gapi-fixup.exe
|
||||
cp $(srcdir)/$(RAW_API) $(API)
|
||||
chmod u+w $(API)
|
||||
@if test -n '$(METADATA)'; then \
|
||||
|
|
|
@ -92,6 +92,16 @@ namespace GtkSharp.Parsing {
|
|||
XPathNavigator meta_nav = meta_doc.CreateNavigator ();
|
||||
XPathNavigator api_nav = api_doc.CreateNavigator ();
|
||||
|
||||
XPathNodeIterator rmv_iter = meta_nav.Select ("/metadata/remove-node");
|
||||
while (rmv_iter.MoveNext ()) {
|
||||
string path = rmv_iter.Current.GetAttribute ("path", "");
|
||||
XPathNodeIterator api_iter = api_nav.Select (path);
|
||||
while (api_iter.MoveNext ()) {
|
||||
XmlElement api_node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
||||
api_node.ParentNode.RemoveChild (api_node);
|
||||
}
|
||||
}
|
||||
|
||||
XPathNodeIterator add_iter = meta_nav.Select ("/metadata/add-node");
|
||||
while (add_iter.MoveNext ()) {
|
||||
string path = add_iter.Current.GetAttribute ("path", "");
|
||||
|
|
Loading…
Add table
Reference in a new issue