diff --git a/ChangeLog b/ChangeLog index 14c255c69..28d99406b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-02 Dan Winship + + * 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 Automatic memory management for opaque types [#49565] diff --git a/generator/Property.cs b/generator/Property.cs index 494ef8fa6..59fa17894 100644 --- a/generator/Property.cs +++ b/generator/Property.cs @@ -112,6 +112,8 @@ namespace GtkSharp.Generation { 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);