mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 13:55:40 +00:00
2005-09-15 Mike Kestner <mkestner@novell.com>
* parser/gapi-fixup.cs : warn on unmatched rules. reworked from a Dan Winship patch. [Fixes #76088] svn path=/trunk/gtk-sharp/; revision=50091
This commit is contained in:
parent
5431d8f69a
commit
6e9ebf451c
|
@ -1,3 +1,8 @@
|
||||||
|
2005-09-15 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* parser/gapi-fixup.cs : warn on unmatched rules. reworked from a Dan
|
||||||
|
Winship patch. [Fixes #76088]
|
||||||
|
|
||||||
2005-09-08 Dan Winship <danw@novell.com>
|
2005-09-08 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata: Hide Gtk.Drag.SetIconDefault. Mark
|
* gtk/Gtk.metadata: Hide Gtk.Drag.SetIconDefault. Mark
|
||||||
|
|
|
@ -484,6 +484,11 @@
|
||||||
<value />
|
<value />
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
|
<Attributes>
|
||||||
|
<Attribute>
|
||||||
|
<AttributeName>System.Obsolete(Message="Replaced by SetIconDefault(ctx)", IsError=False)</AttributeName>
|
||||||
|
</Attribute>
|
||||||
|
</Attributes>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="DestSet">
|
<Member MemberName="DestSet">
|
||||||
<MemberSignature Language="C#" Value="public static void DestSet (Gtk.Widget widget, Gtk.DestDefaults flags, Gtk.TargetEntry[] targets, Gdk.DragAction actions);" />
|
<MemberSignature Language="C#" Value="public static void DestSet (Gtk.Widget widget, Gtk.DestDefaults flags, Gtk.TargetEntry[] targets, Gdk.DragAction actions);" />
|
||||||
|
|
|
@ -127,4 +127,4 @@ class HBoxTester {
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
|
@ -125,4 +125,4 @@ class VBoxTester {
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
|
@ -96,21 +96,29 @@ namespace GtkSharp.Parsing {
|
||||||
while (rmv_iter.MoveNext ()) {
|
while (rmv_iter.MoveNext ()) {
|
||||||
string path = rmv_iter.Current.GetAttribute ("path", "");
|
string path = rmv_iter.Current.GetAttribute ("path", "");
|
||||||
XPathNodeIterator api_iter = api_nav.Select (path);
|
XPathNodeIterator api_iter = api_nav.Select (path);
|
||||||
|
bool matched = false;
|
||||||
while (api_iter.MoveNext ()) {
|
while (api_iter.MoveNext ()) {
|
||||||
XmlElement api_node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
XmlElement api_node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
||||||
api_node.ParentNode.RemoveChild (api_node);
|
api_node.ParentNode.RemoveChild (api_node);
|
||||||
|
matched = true;
|
||||||
}
|
}
|
||||||
|
if (!matched)
|
||||||
|
Console.WriteLine ("Warning: <remove-node path=\"{0}\"/> matched no nodes", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
XPathNodeIterator add_iter = meta_nav.Select ("/metadata/add-node");
|
XPathNodeIterator add_iter = meta_nav.Select ("/metadata/add-node");
|
||||||
while (add_iter.MoveNext ()) {
|
while (add_iter.MoveNext ()) {
|
||||||
string path = add_iter.Current.GetAttribute ("path", "");
|
string path = add_iter.Current.GetAttribute ("path", "");
|
||||||
XPathNodeIterator api_iter = api_nav.Select (path);
|
XPathNodeIterator api_iter = api_nav.Select (path);
|
||||||
|
bool matched = false;
|
||||||
while (api_iter.MoveNext ()) {
|
while (api_iter.MoveNext ()) {
|
||||||
XmlElement api_node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
XmlElement api_node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
||||||
foreach (XmlNode child in ((IHasXmlNode)add_iter.Current).GetNode().ChildNodes)
|
foreach (XmlNode child in ((IHasXmlNode)add_iter.Current).GetNode().ChildNodes)
|
||||||
api_node.AppendChild (api_doc.ImportNode (child, true));
|
api_node.AppendChild (api_doc.ImportNode (child, true));
|
||||||
|
matched = true;
|
||||||
}
|
}
|
||||||
|
if (!matched)
|
||||||
|
Console.WriteLine ("Warning: <add-node path=\"{0}\"/> matched no nodes", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
XPathNodeIterator attr_iter = meta_nav.Select ("/metadata/attr");
|
XPathNodeIterator attr_iter = meta_nav.Select ("/metadata/attr");
|
||||||
|
@ -118,10 +126,14 @@ namespace GtkSharp.Parsing {
|
||||||
string path = attr_iter.Current.GetAttribute ("path", "");
|
string path = attr_iter.Current.GetAttribute ("path", "");
|
||||||
string attr_name = attr_iter.Current.GetAttribute ("name", "");
|
string attr_name = attr_iter.Current.GetAttribute ("name", "");
|
||||||
XPathNodeIterator api_iter = api_nav.Select (path);
|
XPathNodeIterator api_iter = api_nav.Select (path);
|
||||||
|
bool matched = false;
|
||||||
while (api_iter.MoveNext ()) {
|
while (api_iter.MoveNext ()) {
|
||||||
XmlElement node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
XmlElement node = ((IHasXmlNode)api_iter.Current).GetNode () as XmlElement;
|
||||||
node.SetAttribute (attr_name, attr_iter.Current.Value);
|
node.SetAttribute (attr_name, attr_iter.Current.Value);
|
||||||
|
matched = true;
|
||||||
}
|
}
|
||||||
|
if (!matched)
|
||||||
|
Console.WriteLine ("Warning: <attr path=\"{0}\"/> matched no nodes", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
XPathNodeIterator move_iter = meta_nav.Select ("/metadata/move-node");
|
XPathNodeIterator move_iter = meta_nav.Select ("/metadata/move-node");
|
||||||
|
@ -130,6 +142,7 @@ namespace GtkSharp.Parsing {
|
||||||
XPathExpression expr = api_nav.Compile (path);
|
XPathExpression expr = api_nav.Compile (path);
|
||||||
string parent = move_iter.Current.Value;
|
string parent = move_iter.Current.Value;
|
||||||
XPathNodeIterator parent_iter = api_nav.Select (parent);
|
XPathNodeIterator parent_iter = api_nav.Select (parent);
|
||||||
|
bool matched = false;
|
||||||
while (parent_iter.MoveNext ()) {
|
while (parent_iter.MoveNext ()) {
|
||||||
XmlNode parent_node = ((IHasXmlNode)parent_iter.Current).GetNode ();
|
XmlNode parent_node = ((IHasXmlNode)parent_iter.Current).GetNode ();
|
||||||
XPathNodeIterator path_iter = parent_iter.Current.Clone ().Select (expr);
|
XPathNodeIterator path_iter = parent_iter.Current.Clone ().Select (expr);
|
||||||
|
@ -138,7 +151,10 @@ namespace GtkSharp.Parsing {
|
||||||
parent_node.AppendChild (node.Clone ());
|
parent_node.AppendChild (node.Clone ());
|
||||||
node.ParentNode.RemoveChild (node);
|
node.ParentNode.RemoveChild (node);
|
||||||
}
|
}
|
||||||
|
matched = true;
|
||||||
}
|
}
|
||||||
|
if (!matched)
|
||||||
|
Console.WriteLine ("Warning: <move-node path=\"{0}\"/> matched no nodes", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol_doc != null) {
|
if (symbol_doc != null) {
|
||||||
|
|
Loading…
Reference in a new issue