diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-12 08:50:26 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-07-12 08:50:26 +0200 |
commit | 29c2b827b09ba8138059a1c1e5db967ab2029ced (patch) | |
tree | 7113dd33cc9db59a23508d40948ec9f722c4819b /src/cameras/uca-mock-camera.c | |
parent | 7854c5521383d07ead9c8d9693c31a0be26f2351 (diff) | |
download | libuca-29c2b827b09ba8138059a1c1e5db967ab2029ced.tar.gz libuca-29c2b827b09ba8138059a1c1e5db967ab2029ced.tar.bz2 libuca-29c2b827b09ba8138059a1c1e5db967ab2029ced.tar.xz libuca-29c2b827b09ba8138059a1c1e5db967ab2029ced.zip |
Fix LU-26: make "name" a base property
Diffstat (limited to 'src/cameras/uca-mock-camera.c')
-rw-r--r-- | src/cameras/uca-mock-camera.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c index a149e5b..59c5ae8 100644 --- a/src/cameras/uca-mock-camera.c +++ b/src/cameras/uca-mock-camera.c @@ -28,6 +28,7 @@ enum { }; static const gint mock_overrideables[] = { + PROP_NAME, PROP_SENSOR_WIDTH, PROP_SENSOR_HEIGHT, PROP_SENSOR_BITDEPTH, @@ -286,6 +287,9 @@ static void uca_mock_camera_get_property(GObject *object, guint property_id, GVa UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(object); switch (property_id) { + case PROP_NAME: + g_value_set_string(value, "mock camera"); + break; case PROP_SENSOR_WIDTH: g_value_set_uint(value, priv->width); break; |