* 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.

svn path=/trunk/gtk-sharp/; revision=47962
This commit is contained in:
Dan Winship 2005-08-03 14:58:38 +00:00
parent 155f8352a0
commit 38c70d2503
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-08-02 Dan Winship <danw@novell.com>
* 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 <danw@novell.com>
Automatic memory management for opaque types [#49565]

View File

@ -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);