From 38c70d25031ae37835fe855dbdc590512751dd44 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 3 Aug 2005 14:58:38 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ generator/Property.cs | 2 ++ 2 files changed, 8 insertions(+) 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);