From 3761b79dc771022e2f39fb22708d7436f5f02e12 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 2 Mar 2012 17:51:45 +0100 Subject: Test property signals --- src/cameras/uca-mock-camera.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cameras/uca-mock-camera.c') diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c index 0803ec0..8a40bcd 100644 --- a/src/cameras/uca-mock-camera.c +++ b/src/cameras/uca-mock-camera.c @@ -87,7 +87,9 @@ static void uca_mock_camera_grab(UcaCamera *camera, gchar *data, GError **error) static void uca_mock_camera_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { + g_return_if_fail(UCA_IS_MOCK_CAMERA(object)); UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(object); + g_signal_emit_by_name(object, "property-changed", pspec->name, NULL); switch (property_id) { case PROP_FRAMERATE: -- cgit v1.2.3