From cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Sun, 4 Mar 2012 11:02:07 +0100 Subject: Remove "property-changed" signal There is already the nice "notify" signal that does essentially the same with a twist. It also allows per-property signals by calling g_signal_connect(cam, "notify::cooling-point", G_CALLBACK(func), NULL); Nice. --- src/cameras/uca-mock-camera.c | 2 -- src/cameras/uca-pco-camera.c | 2 -- 2 files changed, 4 deletions(-) (limited to 'src/cameras') diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c index c4f790d..94645af 100644 --- a/src/cameras/uca-mock-camera.c +++ b/src/cameras/uca-mock-camera.c @@ -98,8 +98,6 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); return; } - - g_signal_emit_by_name(object, "property-changed", pspec->name); } static void uca_mock_camera_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c index b58e506..0f8ca14 100644 --- a/src/cameras/uca-pco-camera.c +++ b/src/cameras/uca-pco-camera.c @@ -267,8 +267,6 @@ static void uca_pco_camera_set_property(GObject *object, guint property_id, cons G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); return; } - - g_signal_emit_by_name(object, "property-changed", pspec->name); } static void uca_pco_camera_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) -- cgit v1.2.3