Home | History | Annotate | Download | only in gobject

Lines Matching full:pspec

108 #define PARAM_SPEC_PARAM_ID(pspec)		((pspec)->param_id)
109 #define PARAM_SPEC_SET_PARAM_ID(pspec, id) ((pspec)->param_id = (id))
143 GParamSpec *pspec);
147 GParamSpec *pspec);
167 GParamSpec *pspec,
170 GParamSpec *pspec,
298 GParamSpec *pspec = node->data;
300 g_param_spec_pool_remove (pspec_pool, pspec);
301 PARAM_SPEC_SET_PARAM_ID (pspec, 0);
302 g_param_spec_unref (pspec);
338 * @pspec: the #GParamSpec of the property which changed.
377 GParamSpec *pspec)
379 if (g_param_spec_pool_lookup (pspec_pool, pspec->name, g_type, FALSE))
383 pspec->name);
387 g_param_spec_ref (pspec);
388 g_param_spec_sink (pspec);
389 PARAM_SPEC_SET_PARAM_ID (pspec, property_id);
390 g_param_spec_pool_insert (pspec_pool, pspec, g_type);
397 * @pspec: the #GParamSpec for the new property
408 GParamSpec *pspec)
411 g_return_if_fail (G_IS_PARAM_SPEC (pspec));
412 if (pspec->flags & G_PARAM_WRITABLE)
414 if (pspec->flags & G_PARAM_READABLE)
417 g_return_if_fail (PARAM_SPEC_PARAM_ID (pspec) == 0); /* paranoid */
418 if (pspec->flags & G_PARAM_CONSTRUCT)
419 g_return_if_fail ((pspec->flags & G_PARAM_CONSTRUCT_ONLY) == 0);
420 if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
421 g_return_if_fail (pspec->flags & G_PARAM_WRITABLE);
423 install_property_internal (G_OBJECT_CLASS_TYPE (class), property_id, pspec);
425 if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
426 class->construct_properties = g_slist_prepend (class->construct_properties, pspec);
431 pspec = g_param_spec_pool_lookup (pspec_pool, pspec->name, g_type_parent (G_OBJECT_CLASS_TYPE (class)), TRUE);
432 if (pspec && pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
433 class->construct_properties = g_slist_remove (class->construct_properties, pspec);
440 * @pspec: the #GParamSpec for the new property
461 GParamSpec *pspec)
466 g_return_if_fail (G_IS_PARAM_SPEC (pspec));
467 g_return_if_fail (!G_IS_PARAM_SPEC_OVERRIDE (pspec)); /* paranoid */
468 g_return_if_fail (PARAM_SPEC_PARAM_ID (pspec) == 0); /* paranoid */
470 install_property_internal (iface_class->g_type, 0, pspec);
487 GParamSpec *pspec;
493 pspec = g_param_spec_pool_lookup (pspec_pool,
497 if (pspec)
499 redirect = g_param_spec_get_redirect_target (pspec);
503 return pspec;
712 GParamSpec *pspec)
717 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
726 GParamSpec *pspec)
731 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
829 GParamSpec *pspec;
841 pspec = g_param_spec_pool_lookup (pspec_pool,
846 if (!pspec)
856 g_object_notify_queue_add (object, nqueue, pspec);
893 GParamSpec *pspec,
896 GObjectClass *class = g_type_class_peek (pspec->owner_type);
897 guint param_id = PARAM_SPEC_PARAM_ID (pspec);
900 redirect = g_param_spec_get_redirect_target (pspec);
902 pspec = redirect;
904 class->get_property (object, param_id, value, pspec);
909 GParamSpec *pspec,
914 GObjectClass *class = g_type_class_peek (pspec->owner_type);
915 guint param_id = PARAM_SPEC_PARAM_ID (pspec);
918 redirect = g_param_spec_get_redirect_target (pspec);
920 pspec = redirect;
923 g_value_init (&tmp_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
926 pspec->name,
927 g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)),
929 else if (g_param_value_validate (pspec, &tmp_value) && !(pspec->flags & G_PARAM_LAX_VALIDATION))
936 pspec->name,
937 g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)));
942 class->set_property (object, param_id, &tmp_value, pspec);
943 g_object_notify_queue_add (object, nqueue, pspec);
1144 GParamSpec *pspec = g_param_spec_pool_lookup (pspec_pool,
1148 if (!pspec)
1156 if (!(pspec->flags & G_PARAM_WRITABLE))
1160 pspec->name,
1164 if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))
1166 GList *list = g_list_find (clist, pspec);
1171 G_STRFUNC, pspec->name, g_type_name (object_type));
1174 cparams[n_cparams].pspec = pspec;
1187 oparams[n_oparams].pspec = pspec;
1199 GParamSpec *pspec = clist->data;
1203 g_value_init (value, G_PARAM_SPEC_VALUE_TYPE (pspec));
1204 g_param_value_set_default (pspec, value);
1206 cparams[n_cparams].pspec = pspec;
1237 object_set_property (object, oparams[i].pspec, oparams[i].value, nqueue);
1287 GParamSpec *pspec = g_param_spec_pool_lookup (pspec_pool,
1291 if (!pspec)
1306 g_value_init (&params[n_params].value, G_PARAM_SPEC_VALUE_TYPE (pspec));
1349 GParamSpec *pspec = construct_params->pspec;
1352 object_set_property (object, pspec, value, nqueue);
1390 GParamSpec *pspec;
1393 pspec = g_param_spec_pool_lookup (pspec_pool,
1397 if (!pspec)
1405 if (!(pspec->flags & G_PARAM_WRITABLE))
1409 pspec->name,
1413 if ((pspec->flags & G_PARAM_CONSTRUCT_ONLY) && !object_in_construction_list (object))
1416 G_STRFUNC, pspec->name, G_OBJECT_TYPE_NAME (object));
1420 g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
1431 object_set_property (object, pspec, &value, nqueue);
1472 GParamSpec *pspec;
1475 pspec = g_param_spec_pool_lookup (pspec_pool,
1479 if (!pspec)
1487 if (!(pspec->flags & G_PARAM_READABLE))
1491 pspec->name,
1496 g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
1498 object_get_property (object, pspec, &value);
1606 GParamSpec *pspec;
1615 pspec = g_param_spec_pool_lookup (pspec_pool,
1619 if (!pspec)
1624 pspec->flags & G_PARAM_WRITABLE))
1627 pspec->name,
1629 else if ((pspec->flags & G_PARAM_CONSTRUCT_ONLY) && !object_in_construction_list (object))
1631 G_STRFUNC, pspec->name, G_OBJECT_TYPE_NAME (object));
1633 object_set_property (object, pspec, value, nqueue);
1658 GParamSpec *pspec;
1666 pspec = g_param_spec_pool_lookup (pspec_pool,
1670 if (!pspec)
1675 else if (!(pspec->flags & G_PARAM_READABLE))
1678 pspec->name,
1686 if (G_VALUE_TYPE (value) == G_PARAM_SPEC_VALUE_TYPE (pspec))
1691 else if (!g_value_type_transformable (G_PARAM_SPEC_VALUE_TYPE (pspec), G_VALUE_TYPE (value)))
1694 G_STRFUNC, pspec->name,
1695 g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)),
1702 g_value_init (&tmp_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
1705 object_get_property (object, pspec, prop_value);