[Gtk-sharp-list] generator processes fields even though they are hidden
Martin Willemoes Hansen
mwh@sysrq.dk
Tue, 11 Nov 2003 13:28:05 +0100
--=-+Ewvxz+dXQmHpn15l+nO
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi!
In some cases, when fields are processed by the generator, they are not
checked if they have a hidden attribute attached.
This patch fixes the problem.
Okay to commit?
--
Martin Willemoes Hansen
--------------------------------------------------------
E-Mail mwh@sysrq.dk Website mwh.sysrq.dk
IRC MWH, freenode.net
--------------------------------------------------------
--=-+Ewvxz+dXQmHpn15l+nO
Content-Disposition: attachment; filename=FieldsIsProcessedWhenHiddenBugFix.diff
Content-Type: text/x-patch; name=FieldsIsProcessedWhenHiddenBugFix.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
? FieldsIsProcessedWhenHiddenBugFix.diff
? sources/gstreamer-0.4.2
Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.548
diff -u -r1.548 ChangeLog
--- ChangeLog 7 Nov 2003 18:14:34 -0000 1.548
+++ ChangeLog 11 Nov 2003 12:24:32 -0000
@@ -1,3 +1,8 @@
+2003-11-11 Martin Willemoes Hansen <mwh@sysrq.dk>
+
+ * generator/StructBase.cs: If a member has a hidden attribute then
+ it will not be processed.
+
2003-11-07 Mike Kestner <mkestner@ximian.com>
* configure.in : add mono check. expand wrapper scripts
Index: generator/StructBase.cs
===================================================================
RCS file: /cvs/public/gtk-sharp/generator/StructBase.cs,v
retrieving revision 1.41
diff -u -r1.41 StructBase.cs
--- generator/StructBase.cs 28 Oct 2003 15:45:35 -0000 1.41
+++ generator/StructBase.cs 11 Nov 2003 12:24:33 -0000
@@ -25,6 +25,8 @@
if (!(node is XmlElement)) continue;
XmlElement member = (XmlElement) node;
+ if (member.HasAttribute ("hidden"))
+ continue;
switch (node.Name) {
case "field":
--=-+Ewvxz+dXQmHpn15l+nO--