diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-06-06 15:06:59 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-06-06 15:06:59 -0500 |
commit | 50fb08d451719f049daa53d4a9649223a980e87b (patch) | |
tree | 9f647fbae103829c72975aa67e33026f24de3b44 /src | |
parent | de56d59d57a585d80618873531f05f13ea08c8a2 (diff) | |
download | ayatana-indicator-power-50fb08d451719f049daa53d4a9649223a980e87b.tar.gz ayatana-indicator-power-50fb08d451719f049daa53d4a9649223a980e87b.tar.bz2 ayatana-indicator-power-50fb08d451719f049daa53d4a9649223a980e87b.zip |
add G_OBJECT_WARN_INVALID_PROPERTY_ID for the 'default' switch case in Device's get/set property methods
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 5919aa8..1c818cc 100644 --- a/src/device.c +++ b/src/device.c @@ -180,6 +180,10 @@ get_property (GObject * o, guint prop_id, GValue * value, GParamSpec * pspec) case PROP_TIME: g_value_set_uint64 (value, priv->time); break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(o, prop_id, pspec); + break; } } @@ -211,6 +215,10 @@ set_property (GObject * o, guint prop_id, const GValue * value, GParamSpec * psp case PROP_TIME: priv->time = g_value_get_uint64(value); break; + + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID(o, prop_id, pspec); + break; } } |