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/uca-camera.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/uca-camera.c') 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), -- cgit v1.2.3