summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-20 14:43:58 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-20 14:43:58 +0200
commit92c04ece8e2bb63a9e9971122e6eca2b8db09a84 (patch)
tree9688f37bda0732b657a1d89c81194900e3ad6a69
parent9b70e0b08b3e5e5b22c223b01844572e6f46e27a (diff)
downloaduca-92c04ece8e2bb63a9e9971122e6eca2b8db09a84.tar.gz
uca-92c04ece8e2bb63a9e9971122e6eca2b8db09a84.tar.bz2
uca-92c04ece8e2bb63a9e9971122e6eca2b8db09a84.tar.xz
uca-92c04ece8e2bb63a9e9971122e6eca2b8db09a84.zip
Use notify_by_pspec since we depend on GLib 2.38
-rw-r--r--src/uca-camera.c10
1 files changed, 3 insertions, 7 deletions
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);