aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-24 18:56:15 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-05-24 18:56:15 -0500
commit2643aa2da220f14f28744a0f2403a8e68364239a (patch)
tree22e8ca7fd3a6391bb62af2a3a8d6447ab5d23547 /src/device.c
parentd2ba05cfd549a09ff8651c1700b8bf0a8e7d0451 (diff)
downloadayatana-indicator-power-2643aa2da220f14f28744a0f2403a8e68364239a.tar.gz
ayatana-indicator-power-2643aa2da220f14f28744a0f2403a8e68364239a.tar.bz2
ayatana-indicator-power-2643aa2da220f14f28744a0f2403a8e68364239a.zip
remove some unnecessary type compatibilty tests... g_object_get_property() does these tests for us
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/device.c b/src/device.c
index d1b1a84..80b3208 100644
--- a/src/device.c
+++ b/src/device.c
@@ -151,32 +151,26 @@ get_property (GObject * o, guint prop_id, GValue * value, GParamSpec * pspec)
switch (prop_id)
{
case PROP_KIND:
- g_return_if_fail (G_VALUE_HOLDS_INT(value));
g_value_set_int (value, priv->kind);
break;
case PROP_STATE:
- g_return_if_fail (G_VALUE_HOLDS_INT(value));
g_value_set_int (value, priv->state);
break;
case PROP_OBJECT_PATH:
- g_return_if_fail (G_VALUE_HOLDS_STRING(value));
g_value_set_string (value, priv->object_path);
break;
case PROP_ICON:
- g_return_if_fail (G_VALUE_HOLDS_STRING(value));
g_value_set_string (value, priv->icon);
break;
case PROP_PERCENTAGE:
- g_return_if_fail (G_VALUE_HOLDS_DOUBLE(value));
g_value_set_double (value, priv->percentage);
break;
case PROP_TIME:
- g_return_if_fail (G_VALUE_HOLDS_UINT64(value));
g_value_set_uint64 (value, priv->time);
break;