2004-04-13 Mike Kestner <mkestner@ximian.com>

* glib/Value.cs : fix a csc-breaker.

svn path=/trunk/gtk-sharp/; revision=25437
This commit is contained in:
Mike Kestner 2004-04-13 20:54:49 +00:00
parent 3439b34bda
commit 3595f79bc3
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2004-04-13 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : fix a csc-breaker.
2004-04-12 Mike Kestner <mkestner@ximian.com>
* gnome/Program.custom : add ArgumentException for app_id containing

View File

@ -166,13 +166,13 @@ namespace GLib {
type = GType.Invalid;
pad_1 = pad_2 = 0;
GType type = TypeConverter.LookupType (obj.GetType ());
if (type == GType.None) {
GType gtype = TypeConverter.LookupType (obj.GetType ());
if (gtype == GType.None) {
g_value_init (ref this, ManagedValue.GType.Val);
} else if (type == GType.Object) {
} else if (gtype == GType.Object) {
g_value_init (ref this, ((GLib.Object) obj).NativeType.Val);
} else {
g_value_init (ref this, type.Val);
g_value_init (ref this, gtype.Val);
}
Val = obj;