diff options
-rw-r--r-- | uca-net-camera.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c index 03e4996..2b0d913 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -363,9 +363,21 @@ request_get_property (GSocketConnection *connection, const gchar *name, GValue * * that call fails with Python and uca-camera-control but succeeds with * uca-grab ... */ switch (G_VALUE_TYPE (value)) { + case G_TYPE_INT: + g_value_set_int (value, atol (reply.property_value)); + break; + case G_TYPE_INT64: + g_value_set_int (value, atol (reply.property_value)); + break; case G_TYPE_UINT: g_value_set_uint (value, atol (reply.property_value)); break; + case G_TYPE_UINT64: + g_value_set_uint (value, atol (reply.property_value)); + break; + case G_TYPE_FLOAT: + g_value_set_float (value, atof (reply.property_value)); + break; case G_TYPE_DOUBLE: g_value_set_double (value, atof (reply.property_value)); break; |