Author: danw
Date: 2005-08-03 10:58:38 -0400 (Wed, 03 Aug 2005)
New Revision: 47962
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/generator/Property.cs
Log:
* generator/Property.cs (Generate): cast GLib.Values to
System.Enum before casting them to an enum type, to fix the build
with csc 1.1.
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2005-08-03 14:48:53 UTC (rev 47961)
+++ trunk/gtk-sharp/ChangeLog 2005-08-03 14:58:38 UTC (rev 47962)
@@ -1,3 +1,9 @@
+2005-08-02 Dan Winship <[EMAIL PROTECTED]>
+
+ * generator/Property.cs (Generate): cast GLib.Values to
+ System.Enum before casting them to an enum type, to fix the build
+ with csc 1.1.
+
2005-07-29 Dan Winship <[EMAIL PROTECTED]>
Automatic memory management for opaque types [#49565]
Modified: trunk/gtk-sharp/generator/Property.cs
===================================================================
--- trunk/gtk-sharp/generator/Property.cs 2005-08-03 14:48:53 UTC (rev
47961)
+++ trunk/gtk-sharp/generator/Property.cs 2005-08-03 14:58:38 UTC (rev
47962)
@@ -112,6 +112,8 @@
v_type = "(GLib.Object)";
} else if (table.IsOpaque (CType)) {
v_type = "(GLib.Opaque)";
+ } else if (table.IsEnum (CType)) {
+ v_type = "(Enum)";
}
GenerateImports (gen_info, indent);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches