diff options
author | Ted Gould <ted@gould.cx> | 2010-02-04 22:01:04 -0800 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-04 22:01:04 -0800 |
commit | 326cb8348ebed49490eac85ff1db88f4ecd2491d (patch) | |
tree | 2ff8220d461b8748bf8563ac3e28c50894efc9e2 | |
parent | b45a161f2cc5fc8aba4f1c8837ce337b1a9bb339 (diff) | |
download | libdbusmenu-326cb8348ebed49490eac85ff1db88f4ecd2491d.tar.gz libdbusmenu-326cb8348ebed49490eac85ff1db88f4ecd2491d.tar.bz2 libdbusmenu-326cb8348ebed49490eac85ff1db88f4ecd2491d.zip |
Adding in warnings for invalid property ids
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 2deac2c..467d3f4 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -325,6 +325,9 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec) menuitem_next_id = priv->id + 1; } break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, id, pspec); + break; } return; @@ -342,6 +345,9 @@ get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec) } g_value_set_int(value, priv->id); break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, id, pspec); + break; } return; |