summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r--src/uca-camera.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index cbc0e90..ae8fea9 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -135,7 +135,10 @@ struct _UcaCameraPrivate {
static void
uca_camera_set_property_unit (GParamSpec *pspec, UcaUnit unit)
{
- g_param_spec_set_qdata (pspec, UCA_UNIT_QUARK, GINT_TO_POINTER (unit));
+ if (g_param_spec_get_qdata (pspec, UCA_UNIT_QUARK) != NULL)
+ g_warning ("::%s already has a unit", pspec->name);
+ else
+ g_param_spec_set_qdata (pspec, UCA_UNIT_QUARK, GINT_TO_POINTER (unit));
}
static void