[seed] [libseed] Throw exception if property is installed with no type
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] [libseed] Throw exception if property is installed with no type
- Date: Sat, 1 Aug 2009 02:20:59 +0000 (UTC)
commit 02c31eb1b43babb8f3ddbf73bc37b4a4cbdca9d8
Author: Tim Horton <hortont424 gmail com>
Date: Fri Jul 31 22:20:22 2009 -0400
[libseed] Throw exception if property is installed with no type
libseed/seed-gtype.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-gtype.c b/libseed/seed-gtype.c
index 60faf8d..0f917a9 100644
--- a/libseed/seed-gtype.c
+++ b/libseed/seed-gtype.c
@@ -718,7 +718,9 @@ seed_gtype_install_properties (JSContextRef ctx,
exception), flags);
break;
case G_TYPE_NONE:
- // TODO: yell and scream!
+ seed_make_exception (ctx, exception, "PropertyInstallationError",
+ "Property requires type attribute");
+ return property_count;
break;
default: // Boxed types TODO: this is almost certainly wrong
pspec = g_param_spec_boxed(name, nick, blurb, type, flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]