diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-04 11:02:07 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-04 11:02:07 +0100 |
commit | cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7 (patch) | |
tree | a827f5aefd7867f924297d4da7faf25bdb4ad8d7 /src | |
parent | 6cabdcdc0c51d567e87106d4d3222a4b89ea8f20 (diff) | |
download | uca-cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7.tar.gz uca-cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7.tar.bz2 uca-cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7.tar.xz uca-cf05bc395e1604dab0ad9ae7f0c70f7bd5aa09a7.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/cameras/uca-mock-camera.c | 2 | ||||
-rw-r--r-- | src/cameras/uca-pco-camera.c | 2 | ||||
-rw-r--r-- | src/uca-camera.c | 9 | ||||
-rw-r--r-- | src/uca-camera.h | 1 |
4 files changed, 0 insertions, 14 deletions
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) diff --git a/src/uca-camera.c b/src/uca-camera.c index 57b4e50..00bda82 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -153,15 +153,6 @@ static void uca_camera_class_init(UcaCameraClass *klass) for (guint id = PROP_0 + 1; id < N_PROPERTIES; id++) g_object_class_install_property(gobject_class, id, camera_properties[id]); - camera_signals[PROPERTY_CHANGED] = - g_signal_new("property-changed", - G_OBJECT_CLASS_TYPE(gobject_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(UcaCameraClass, property_changed), - NULL, NULL, - g_cclosure_marshal_VOID__STRING, - G_TYPE_NONE, 1, G_TYPE_STRING); - camera_signals[RECORDING_STARTED] = g_signal_new("recording-started", G_OBJECT_CLASS_TYPE(gobject_class), diff --git a/src/uca-camera.h b/src/uca-camera.h index 1a6e6d1..59a0670 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -57,7 +57,6 @@ struct _UcaCameraClass { void (*stop_recording) (UcaCamera *camera, GError **error); void (*grab) (UcaCamera *camera, gchar *data, GError **error); - void (*property_changed) (UcaCamera *camera, const gchar *name, gpointer user_data); void (*recording_started) (UcaCamera *camera); void (*recording_stopped) (UcaCamera *camera); }; |