From 92c04ece8e2bb63a9e9971122e6eca2b8db09a84 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 20 Jun 2018 14:43:58 +0200 Subject: Use notify_by_pspec since we depend on GLib 2.38 --- src/uca-camera.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/uca-camera.c b/src/uca-camera.c index 48a35b1..4a1f7f9 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -802,9 +802,7 @@ uca_camera_start_recording (UcaCamera *camera, GError **error) priv->is_readout = FALSE; priv->is_recording = TRUE; priv->cancelling_recording = FALSE; - - /* TODO: we should depend on GLib 2.26 and use g_object_notify_by_pspec */ - g_object_notify (G_OBJECT (camera), "is-recording"); + g_object_notify_by_pspec (G_OBJECT (camera), camera_properties[PROP_IS_RECORDING]); } else g_propagate_error (error, tmp_error); @@ -880,8 +878,7 @@ uca_camera_stop_recording (UcaCamera *camera, GError **error) if (tmp_error == NULL) { priv->is_recording = FALSE; priv->is_readout = FALSE; - /* TODO: we should depend on GLib 2.26 and use g_object_notify_by_pspec */ - g_object_notify (G_OBJECT (camera), "is-recording"); + g_object_notify_by_pspec (G_OBJECT (camera), camera_properties[PROP_IS_RECORDING]); } else g_propagate_error (error, tmp_error); @@ -949,8 +946,7 @@ uca_camera_start_readout (UcaCamera *camera, GError **error) if (tmp_error == NULL) { camera->priv->is_readout = TRUE; - /* TODO: we should depend on GLib 2.26 and use g_object_notify_by_pspec */ - g_object_notify (G_OBJECT (camera), "is-readout"); + g_object_notify_by_pspec (G_OBJECT (camera), camera_properties[PROP_IS_READOUT]); } else g_propagate_error (error, tmp_error); -- cgit v1.2.3