gobject_class->finalize = clutter_actor_meta_finalize;
gobject_class->set_property = clutter_actor_meta_set_property;
gobject_class->get_property = clutter_actor_meta_get_property;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
void
g_free (meta->priv->name);
meta->priv->name = g_strdup (name);
- _clutter_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_NAME]);
}
/**
meta->priv->is_enabled = is_enabled;
- _clutter_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_ENABLED]);
+ g_object_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_ENABLED]);
}
/**
/* notify on parent mapped before potentially mapping
* children, so apps see a top-down notification.
*/
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAPPED]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAPPED]);
for (c = self->priv->children; c; c = c->next)
{
/* notify on parent mapped after potentially unmapping
* children, so apps see a bottom-up notification.
*/
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAPPED]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAPPED]);
/* relinquish keyboard focus if we were unmapped while owning it */
if (!CLUTTER_ACTOR_IS_TOPLEVEL (self))
if (priv->parent_actor == NULL)
{
priv->show_on_set_parent = set_show;
- _clutter_notify_by_pspec (G_OBJECT (self),
+ g_object_notify_by_pspec (G_OBJECT (self),
obj_props[PROP_SHOW_ON_SET_PARENT]);
}
}
set_show_on_set_parent (self, TRUE);
g_signal_emit (self, actor_signals[SHOW], 0);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_VISIBLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_VISIBLE]);
if (priv->parent_actor)
clutter_actor_queue_redraw (priv->parent_actor);
set_show_on_set_parent (self, FALSE);
g_signal_emit (self, actor_signals[HIDE], 0);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_VISIBLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_VISIBLE]);
if (priv->parent_actor)
clutter_actor_queue_redraw (priv->parent_actor);
CLUTTER_NOTE (ACTOR, "Realizing actor '%s'", _clutter_actor_get_debug_name (self));
CLUTTER_ACTOR_SET_FLAGS (self, CLUTTER_ACTOR_REALIZED);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REALIZED]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REALIZED]);
g_signal_emit (self, actor_signals[REALIZE], 0);
* child actors are unrealized, to maintain invariants.
*/
CLUTTER_ACTOR_UNSET_FLAGS (self, CLUTTER_ACTOR_REALIZED);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REALIZED]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REALIZED]);
return CLUTTER_ACTOR_TRAVERSE_VISIT_CONTINUE;
}
*/
if (priv->needs_allocation)
{
- _clutter_notify_by_pspec (obj, obj_props[PROP_X]);
- _clutter_notify_by_pspec (obj, obj_props[PROP_Y]);
- _clutter_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
- _clutter_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_X]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_Y]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
}
else if (priv->needs_width_request || priv->needs_height_request)
{
- _clutter_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
- _clutter_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
}
else
{
heightu = priv->allocation.y2 - priv->allocation.y1;
if (xu != old->x1)
- _clutter_notify_by_pspec (obj, obj_props[PROP_X]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_X]);
if (yu != old->y1)
- _clutter_notify_by_pspec (obj, obj_props[PROP_Y]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_Y]);
if (widthu != (old->x2 - old->x1))
- _clutter_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_WIDTH]);
if (heightu != (old->y2 - old->y1))
- _clutter_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_HEIGHT]);
}
g_object_thaw_notify (obj);
CLUTTER_NOTE (LAYOUT, "Allocation for '%s' changed",
_clutter_actor_get_debug_name (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ALLOCATION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ALLOCATION]);
/* we also emit the ::allocation-changed signal for people
* that wish to track the allocation flags
{
case CLUTTER_X_AXIS:
priv->rxang = angle;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_X]);
break;
case CLUTTER_Y_AXIS:
priv->ryang = angle;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_Y]);
break;
case CLUTTER_Z_AXIS:
priv->rzang = angle;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_Z]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_ANGLE_Z]);
break;
}
return;
self->priv->position_set = is_set != FALSE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FIXED_POSITION_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FIXED_POSITION_SET]);
clutter_actor_queue_relayout (self);
}
clutter_actor_store_old_geometry (self, &old);
priv->request_min_width = min_width;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_WIDTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_WIDTH]);
clutter_actor_set_min_width_set (self, TRUE);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->request_min_height = min_height;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_HEIGHT]);
clutter_actor_set_min_height_set (self, TRUE);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->request_natural_width = natural_width;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_WIDTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_WIDTH]);
clutter_actor_set_natural_width_set (self, TRUE);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->request_natural_height = natural_height;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_HEIGHT]);
clutter_actor_set_natural_height_set (self, TRUE);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->min_width_set = use_min_width != FALSE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_WIDTH_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_WIDTH_SET]);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->min_height_set = use_min_height != FALSE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_HEIGHT_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MIN_HEIGHT_SET]);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->natural_width_set = use_natural_width != FALSE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_WIDTH_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_WIDTH_SET]);
clutter_actor_notify_if_geometry_changed (self, &old);
clutter_actor_store_old_geometry (self, &old);
priv->natural_height_set = use_natural_height != FALSE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_HEIGHT_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NATURAL_HEIGHT_SET]);
clutter_actor_notify_if_geometry_changed (self, &old);
priv->needs_width_request = TRUE;
priv->needs_height_request = TRUE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REQUEST_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_REQUEST_MODE]);
clutter_actor_queue_relayout (self);
}
g_object_freeze_notify (G_OBJECT (self));
priv->scale_x = scale_x;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_X]);
priv->scale_y = scale_y;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_Y]);
clutter_actor_queue_redraw (self);
clutter_actor_set_scale (self, scale_x, scale_y);
if (priv->scale_center.is_fractional)
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_GRAVITY]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_X]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_Y]);
clutter_anchor_coord_set_units (&priv->scale_center, center_x, center_y, 0);
clutter_actor_set_scale (self, scale_x, scale_y);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_GRAVITY]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_X]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SCALE_CENTER_Y]);
clutter_anchor_coord_set_gravity (&priv->scale_center, gravity);
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_OPACITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_OPACITY]);
}
}
g_free (self->priv->name);
self->priv->name = g_strdup (name);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_NAME]);
}
/**
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_DEPTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_DEPTH]);
}
}
{
case CLUTTER_X_AXIS:
clutter_anchor_coord_set_units (&priv->rx_center, x, y, z);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_X]);
break;
case CLUTTER_Y_AXIS:
clutter_anchor_coord_set_units (&priv->ry_center, x, y, z);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Y]);
break;
case CLUTTER_Z_AXIS:
if (priv->rz_center.is_fractional)
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z_GRAVITY]);
clutter_anchor_coord_set_units (&priv->rz_center, x, y, z);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z]);
break;
}
clutter_actor_set_rotation_internal (self, CLUTTER_Z_AXIS, angle);
clutter_anchor_coord_set_gravity (&priv->rz_center, gravity);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z_GRAVITY]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ROTATION_CENTER_Z]);
g_object_thaw_notify (G_OBJECT (self));
}
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_CLIP]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CLIP]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_CLIP]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CLIP]);
}
/**
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_CLIP]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_CLIP]);
}
/**
else
CLUTTER_ACTOR_UNSET_FLAGS (actor, CLUTTER_ACTOR_REACTIVE);
- _clutter_notify_by_pspec (G_OBJECT (actor), obj_props[PROP_REACTIVE]);
+ g_object_notify_by_pspec (G_OBJECT (actor), obj_props[PROP_REACTIVE]);
}
/**
NULL);
if (priv->anchor.is_fractional)
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_GRAVITY]);
if (old_anchor_x != anchor_x)
{
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_X]);
changed = TRUE;
}
if (old_anchor_y != anchor_y)
{
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_Y]);
changed = TRUE;
}
{
clutter_anchor_coord_set_gravity (&self->priv->anchor, gravity);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_GRAVITY]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_X]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_GRAVITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANCHOR_Y]);
}
}
visible_set = ((self->flags & CLUTTER_ACTOR_VISIBLE) != 0);
if (reactive_set != was_reactive_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_REACTIVE]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_REACTIVE]);
if (realized_set != was_realized_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_REALIZED]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_REALIZED]);
if (mapped_set != was_mapped_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_MAPPED]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_MAPPED]);
if (visible_set != was_visible_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_VISIBLE]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_VISIBLE]);
g_object_thaw_notify (obj);
g_object_unref (obj);
visible_set = ((self->flags & CLUTTER_ACTOR_VISIBLE) != 0);
if (reactive_set != was_reactive_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_REACTIVE]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_REACTIVE]);
if (realized_set != was_realized_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_REALIZED]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_REALIZED]);
if (mapped_set != was_mapped_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_MAPPED]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_MAPPED]);
if (visible_set != was_visible_set)
- _clutter_notify_by_pspec (obj, obj_props[PROP_VISIBLE]);
+ g_object_notify_by_pspec (obj, obj_props[PROP_VISIBLE]);
g_object_thaw_notify (obj);
}
* the text direction; see clutter_text_direction_changed_cb()
* inside clutter-text.c
*/
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT_DIRECTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT_DIRECTION]);
/* if this is a container we need to recurse */
if (CLUTTER_IS_CONTAINER (self))
{
priv->has_pointer = has_pointer;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_POINTER]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HAS_POINTER]);
}
}
_clutter_meta_group_add_meta (priv->actions, CLUTTER_ACTOR_META (action));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
}
/**
_clutter_meta_group_remove_meta (priv->actions, CLUTTER_ACTOR_META (action));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
}
/**
_clutter_meta_group_remove_meta (priv->actions, meta);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIONS]);
}
/**
CLUTTER_ACTOR_META (constraint));
clutter_actor_queue_relayout (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONSTRAINTS]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONSTRAINTS]);
}
/**
CLUTTER_ACTOR_META (constraint));
clutter_actor_queue_relayout (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONSTRAINTS]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CONSTRAINTS]);
}
/**
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CLIP_TO_ALLOCATION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CLIP_TO_ALLOCATION]);
}
}
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EFFECT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EFFECT]);
}
/**
clutter_actor_queue_redraw (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EFFECT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EFFECT]);
}
/**
clutter_actor_queue_relayout (align->actor);
}
- _clutter_notify_by_pspec (G_OBJECT (align), obj_props[PROP_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (align), obj_props[PROP_SOURCE]);
}
/**
if (align->actor != NULL)
clutter_actor_queue_relayout (align->actor);
- _clutter_notify_by_pspec (G_OBJECT (align), obj_props[PROP_ALIGN_AXIS]);
+ g_object_notify_by_pspec (G_OBJECT (align), obj_props[PROP_ALIGN_AXIS]);
}
/**
if (align->actor != NULL)
clutter_actor_queue_relayout (align->actor);
- _clutter_notify_by_pspec (G_OBJECT (align), obj_props[PROP_FACTOR]);
+ g_object_notify_by_pspec (G_OBJECT (align), obj_props[PROP_FACTOR]);
}
/**
/* Update alpha value and notify */
priv->alpha = clutter_alpha_get_alpha (alpha);
- _clutter_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_ALPHA]);
+ g_object_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_ALPHA]);
}
static void
CLUTTER_CUSTOM_MODE,
G_PARAM_CONSTRUCT | CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (object_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (object_class,
+ PROP_LAST,
+ obj_props);
}
static void
clutter_alpha_set_closure_internal (alpha, closure);
priv->mode = CLUTTER_CUSTOM_MODE;
- _clutter_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
}
/**
clutter_alpha_set_closure_internal (alpha, closure);
priv->mode = CLUTTER_CUSTOM_MODE;
- _clutter_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
}
/**
alpha);
}
- _clutter_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_TIMELINE]);
+ g_object_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_TIMELINE]);
}
/**
else
g_assert_not_reached ();
- _clutter_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (alpha), obj_props[PROP_MODE]);
}
static gulong
CLUTTER_TYPE_ALPHA,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
/**
* ClutterAnimation::started:
priv->alpha = g_object_ref_sink (alpha);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_ALPHA]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_ALPHA]);
}
return priv->alpha;
/* the alpha owns the timeline now */
g_object_unref (timeline);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
return timeline;
}
if (object != NULL)
priv->object = g_object_ref (object);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_OBJECT]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_OBJECT]);
}
/**
clutter_alpha_set_mode (alpha, mode);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_MODE]);
g_object_thaw_notify (G_OBJECT (animation));
}
clutter_timeline_set_duration (timeline, msecs);
clutter_timeline_rewind (timeline);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
g_object_thaw_notify (G_OBJECT (animation));
}
timeline = clutter_animation_get_timeline_internal (animation);
clutter_timeline_set_loop (timeline, loop);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
g_object_thaw_notify (G_OBJECT (animation));
}
alpha = clutter_animation_get_alpha_internal (animation);
clutter_alpha_set_timeline (alpha, timeline);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
if (timeline)
{
out:
/* emit all relevant notifications */
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_MODE]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_ALPHA]);
- _clutter_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_DURATION]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_ALPHA]);
+ g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_TIMELINE]);
g_object_thaw_notify (G_OBJECT (animation));
}
CLUTTER_TYPE_TIMELINE,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
priv->center.x = x;
priv->center.y = y;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CENTER]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CENTER]);
}
}
{
priv->a = width / 2;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_WIDTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_WIDTH]);
}
}
{
priv->b = height / 2;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_HEIGHT]);
}
}
if (priv->angle_start != new_angle)
{
priv->angle_start = new_angle;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_START]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_START]);
}
}
{
priv->angle_end = new_angle;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_END]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_END]);
}
}
{
priv->angle_tilt_x = angle_tilt;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_X]);
}
break;
{
priv->angle_tilt_y = angle_tilt;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Y]);
}
break;
{
priv->angle_tilt_z = angle_tilt;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Z]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Z]);
}
break;
}
{
priv->angle_tilt_x = angle_tilt_x;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_X]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_X]);
}
if (priv->angle_tilt_y != angle_tilt_y)
{
priv->angle_tilt_y = angle_tilt_y;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Y]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Y]);
}
if (priv->angle_tilt_z != angle_tilt_z)
{
priv->angle_tilt_z = angle_tilt_z;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Z]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ANGLE_TILT_Z]);
}
g_object_thaw_notify (G_OBJECT (self));
{
priv->direction = direction;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_DIRECTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_DIRECTION]);
}
}
{
priv->opacity_start = opacity_start;
- _clutter_notify_by_pspec (G_OBJECT (behaviour), obj_props[PROP_OPACITY_START]);
+ g_object_notify_by_pspec (G_OBJECT (behaviour), obj_props[PROP_OPACITY_START]);
}
if (priv->opacity_end != opacity_end)
{
priv->opacity_end = opacity_end;
- _clutter_notify_by_pspec (G_OBJECT (behaviour), obj_props[PROP_OPACITY_END]);
+ g_object_notify_by_pspec (G_OBJECT (behaviour), obj_props[PROP_OPACITY_END]);
}
g_object_thaw_notify (G_OBJECT (behaviour));
priv->path = path;
- _clutter_notify_by_pspec (G_OBJECT (pathb), obj_props[PROP_PATH]);
+ g_object_notify_by_pspec (G_OBJECT (pathb), obj_props[PROP_PATH]);
}
/**
{
priv->axis = axis;
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_AXIS]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_AXIS]);
}
}
{
priv->direction = direction;
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_DIRECTION]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_DIRECTION]);
}
}
{
priv->angle_start = clamp_angle (angle_start);
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_ANGLE_START]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_ANGLE_START]);
}
if (priv->angle_end != angle_end)
{
priv->angle_end = clamp_angle (angle_end);
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_ANGLE_END]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_ANGLE_END]);
}
g_object_thaw_notify (G_OBJECT (rotate));
if (priv->center_x != x)
{
priv->center_x = x;
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_X]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_X]);
}
if (priv->center_y != y)
{
priv->center_y = y;
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_Y]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_Y]);
}
if (priv->center_z != z)
{
priv->center_z = z;
- _clutter_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_Z]);
+ g_object_notify_by_pspec (G_OBJECT (rotate), obj_props[PROP_CENTER_Z]);
}
g_object_thaw_notify (G_OBJECT (rotate));
if (priv->x_scale_start != x_scale_start)
{
priv->x_scale_start = x_scale_start;
- _clutter_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_X_SCALE_START]);
+ g_object_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_X_SCALE_START]);
}
if (priv->y_scale_start != y_scale_start)
{
priv->y_scale_start = y_scale_start;
- _clutter_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_Y_SCALE_START]);
+ g_object_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_Y_SCALE_START]);
}
if (priv->x_scale_end != x_scale_end)
{
priv->x_scale_end = x_scale_end;
- _clutter_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_X_SCALE_END]);
+ g_object_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_X_SCALE_END]);
}
if (priv->y_scale_end != y_scale_end)
{
priv->y_scale_end = y_scale_end;
- _clutter_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_Y_SCALE_END]);
+ g_object_notify_by_pspec (G_OBJECT (scale), obj_props[PROP_Y_SCALE_END]);
}
g_object_thaw_notify (G_OBJECT (scale));
CLUTTER_TYPE_ALPHA,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (object_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (object_class,
+ PROP_LAST,
+ obj_props);
klass->alpha_notify = clutter_behaviour_alpha_notify_unimplemented;
priv->alpha, priv->notify_id);
}
- _clutter_notify_by_pspec (G_OBJECT (behave), obj_props[PROP_ALPHA]);
+ g_object_notify_by_pspec (G_OBJECT (behave), obj_props[PROP_ALPHA]);
}
/**
manager = clutter_layout_meta_get_manager (meta);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (self), layer_props[PROP_LAYER_X_ALIGN]);
+ g_object_notify_by_pspec (G_OBJECT (self), layer_props[PROP_LAYER_X_ALIGN]);
}
static void
manager = clutter_layout_meta_get_manager (meta);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (self), layer_props[PROP_LAYER_Y_ALIGN]);
+ g_object_notify_by_pspec (G_OBJECT (self), layer_props[PROP_LAYER_Y_ALIGN]);
}
static void
CLUTTER_BIN_ALIGNMENT_CENTER,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAYER_LAST,
- layer_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAYER_LAST,
+ layer_props);
}
static void
manager = CLUTTER_LAYOUT_MANAGER (self);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (self), bin_props[PROP_X_ALIGN]);
+ g_object_notify_by_pspec (G_OBJECT (self), bin_props[PROP_X_ALIGN]);
}
}
manager = CLUTTER_LAYOUT_MANAGER (self);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (self), bin_props[PROP_Y_ALIGN]);
+ g_object_notify_by_pspec (G_OBJECT (self), bin_props[PROP_Y_ALIGN]);
}
}
gobject_class->set_property = clutter_bin_layout_set_property;
gobject_class->get_property = clutter_bin_layout_get_property;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- bin_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ bin_props);
layout_class->get_preferred_width =
clutter_bin_layout_get_preferred_width;
0.0f,
CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
clutter_actor_queue_relayout (constraint->actor);
}
- _clutter_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_SOURCE]);
}
/**
if (constraint->actor != NULL)
clutter_actor_queue_relayout (constraint->actor);
- _clutter_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_COORDINATE]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_COORDINATE]);
}
/**
if (constraint->actor != NULL)
clutter_actor_queue_relayout (constraint->actor);
- _clutter_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_OFFSET]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_OFFSET]);
}
/**
CLUTTER_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LAYOUT_MANAGER]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LAYOUT_MANAGER]);
}
static void
clutter_actor_queue_redraw (CLUTTER_ACTOR (box));
- _clutter_notify_by_pspec (G_OBJECT (box), obj_props[PROP_COLOR_SET]);
- _clutter_notify_by_pspec (G_OBJECT (box), obj_props[PROP_COLOR]);
+ g_object_notify_by_pspec (G_OBJECT (box), obj_props[PROP_COLOR_SET]);
+ g_object_notify_by_pspec (G_OBJECT (box), obj_props[PROP_COLOR]);
}
/**
0,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
/**
* ClutterCairoTexture::create-surface:
if (priv->width != width)
{
priv->width = width;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SURFACE_WIDTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SURFACE_WIDTH]);
}
if (priv->height != height)
{
priv->height = height;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SURFACE_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SURFACE_HEIGHT]);
}
clutter_cairo_texture_surface_resize_internal (self);
G_PARAM_CONSTRUCT_ONLY |
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
return;
priv->is_pressed = is_pressed;
- _clutter_notify_by_pspec (G_OBJECT (action), obj_props[PROP_PRESSED]);
+ g_object_notify_by_pspec (G_OBJECT (action), obj_props[PROP_PRESSED]);
}
static gboolean
FALSE,
CLUTTER_PARAM_READABLE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
/**
* ClutterClickAction::clicked:
G_PARAM_CONSTRUCT |
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
G_CALLBACK (clone_source_queue_relayout_cb), clone);
}
- _clutter_notify_by_pspec (G_OBJECT (clone), obj_props[PROP_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (clone), obj_props[PROP_SOURCE]);
clutter_actor_queue_relayout (CLUTTER_ACTOR (clone));
}
&default_tint,
CLUTTER_PARAM_READWRITE);
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
if (effect->actor != NULL)
clutter_actor_queue_redraw (effect->actor);
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_TINT]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_TINT]);
}
/**
gobject_class->finalize = clutter_deform_effect_finalize;
gobject_class->set_property = clutter_deform_effect_set_property;
gobject_class->get_property = clutter_deform_effect_get_property;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
meta_class->set_actor = clutter_deform_effect_set_actor;
{
priv->x_tiles = x_tiles;
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_X_TILES]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_X_TILES]);
tiles_changed = TRUE;
}
{
priv->y_tiles = y_tiles;
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_Y_TILES]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_Y_TILES]);
tiles_changed = TRUE;
}
gobject_class->set_property = clutter_desaturate_effect_set_property;
gobject_class->get_property = clutter_desaturate_effect_get_property;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
if (effect->actor != NULL)
clutter_actor_queue_redraw (effect->actor);
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_FACTOR]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_FACTOR]);
}
}
gobject_class->set_property = clutter_device_manager_set_property;
gobject_class->get_property = clutter_device_manager_get_property;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
/**
* ClutterDeviceManager::device-added:
gobject_class->set_property = clutter_drag_action_set_property;
gobject_class->get_property = clutter_drag_action_get_property;
gobject_class->dispose = clutter_drag_action_dispose;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- drag_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ drag_props);
/**
* ClutterDragAction::drag-begin:
{
priv->x_drag_threshold = x_threshold;
- _clutter_notify_by_pspec (self, drag_props[PROP_X_DRAG_THRESHOLD]);
+ g_object_notify_by_pspec (self, drag_props[PROP_X_DRAG_THRESHOLD]);
}
if (priv->y_drag_threshold != y_threshold)
{
priv->y_drag_threshold = y_threshold;
- _clutter_notify_by_pspec (self, drag_props[PROP_Y_DRAG_THRESHOLD]);
+ g_object_notify_by_pspec (self, drag_props[PROP_Y_DRAG_THRESHOLD]);
}
g_object_thaw_notify (self);
priv->drag_handle = handle;
- _clutter_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_HANDLE]);
+ g_object_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_HANDLE]);
}
/**
priv->drag_axis = axis;
- _clutter_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_AXIS]);
+ g_object_notify_by_pspec (G_OBJECT (action), drag_props[PROP_DRAG_AXIS]);
}
/**
gobject_class->finalize = clutter_flow_layout_finalize;
gobject_class->set_property = clutter_flow_layout_set_property;
gobject_class->get_property = clutter_flow_layout_get_property;
- _clutter_object_class_install_properties (gobject_class,
- N_PROPERTIES,
- flow_properties);
+ g_object_class_install_properties (gobject_class,
+ N_PROPERTIES,
+ flow_properties);
}
static void
manager = CLUTTER_LAYOUT_MANAGER (layout);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_ORIENTATION]);
}
}
manager = CLUTTER_LAYOUT_MANAGER (layout);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_HOMOGENEOUS]);
}
}
manager = CLUTTER_LAYOUT_MANAGER (layout);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_COLUMN_SPACING]);
}
}
manager = CLUTTER_LAYOUT_MANAGER (layout);
clutter_layout_manager_layout_changed (manager);
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_ROW_SPACING]);
}
}
}
if (notify_min)
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_MIN_COLUMN_WIDTH]);
if (notify_max)
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_MAX_COLUMN_WIDTH]);
g_object_thaw_notify (G_OBJECT (layout));
}
if (notify_min)
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_MIN_ROW_HEGHT]);
if (notify_max)
- _clutter_notify_by_pspec (G_OBJECT (layout),
+ g_object_notify_by_pspec (G_OBJECT (layout),
flow_properties[PROP_MAX_ROW_HEIGHT]);
g_object_thaw_notify (G_OBJECT (layout));
clutter_deform_effect_invalidate (CLUTTER_DEFORM_EFFECT (effect));
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_PERIOD]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_PERIOD]);
}
/**
clutter_deform_effect_invalidate (CLUTTER_DEFORM_EFFECT (effect));
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_ANGLE]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_ANGLE]);
}
/**
clutter_deform_effect_invalidate (CLUTTER_DEFORM_EFFECT (effect));
- _clutter_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_RADIUS]);
+ g_object_notify_by_pspec (G_OBJECT (effect), obj_props[PROP_RADIUS]);
}
/**
gobject_class->set_property = clutter_path_constraint_set_property;
gobject_class->get_property = clutter_path_constraint_get_property;
gobject_class->dispose = clutter_path_constraint_dispose;
- _clutter_object_class_install_properties (gobject_class,
- LAST_PROPERTY,
- path_properties);
+ g_object_class_install_properties (gobject_class,
+ LAST_PROPERTY,
+ path_properties);
meta_class->set_actor = clutter_path_constraint_set_actor;
if (constraint->actor != NULL)
clutter_actor_queue_relayout (constraint->actor);
- _clutter_notify_by_pspec (G_OBJECT (constraint), path_properties[PROP_PATH]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), path_properties[PROP_PATH]);
}
/**
if (constraint->actor != NULL)
clutter_actor_queue_relayout (constraint->actor);
- _clutter_notify_by_pspec (G_OBJECT (constraint), path_properties[PROP_OFFSET]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), path_properties[PROP_OFFSET]);
}
/**
typedef struct _ClutterMainContext ClutterMainContext;
-#define _clutter_notify_by_pspec(obj, pspec) \
- g_object_notify_by_pspec ((obj), (pspec))
-
-#define _clutter_object_class_install_properties(oclass, n_pspecs, pspecs) \
- g_object_class_install_properties ((oclass), (n_pspecs), (pspecs))
-
#define CLUTTER_REGISTER_VALUE_TRANSFORM_TO(TYPE_TO,func) { \
g_value_register_transform_func (g_define_type_id, TYPE_TO, func); \
}
gobject_class->get_property = clutter_script_get_property;
gobject_class->finalize = clutter_script_finalize;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
}
static void
gobject_class->set_property = clutter_shader_effect_set_property;
gobject_class->finalize = clutter_shader_effect_finalize;
- _clutter_object_class_install_properties (gobject_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (gobject_class,
+ PROP_LAST,
+ obj_props);
meta_class->set_actor = clutter_shader_effect_set_actor;
priv->fragment_source = g_strndup (data, length);
priv->fragment_is_glsl = is_glsl;
- _clutter_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_FRAGMENT_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_FRAGMENT_SOURCE]);
break;
case CLUTTER_VERTEX_SHADER:
priv->vertex_source = g_strndup (data, length);
priv->vertex_is_glsl = is_glsl;
- _clutter_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_VERTEX_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_VERTEX_SOURCE]);
break;
}
}
priv->compiled = bind_glsl_shader (shader, error);
- _clutter_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_COMPILED]);
+ g_object_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_COMPILED]);
return priv->compiled;
}
clutter_shader_release_internal (shader);
- _clutter_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_COMPILED]);
+ g_object_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_COMPILED]);
}
/**
else
cogl_program_use (COGL_INVALID_HANDLE);
- _clutter_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_ENABLED]);
+ g_object_notify_by_pspec (G_OBJECT (shader), obj_props[PROP_ENABLED]);
}
}
clutter_actor_queue_relayout (constraint->actor);
}
- _clutter_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_SOURCE]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_SOURCE]);
}
/**
if (constraint->from_edge != from_edge)
{
constraint->from_edge = from_edge;
- _clutter_notify_by_pspec (G_OBJECT (constraint),
+ g_object_notify_by_pspec (G_OBJECT (constraint),
obj_props[PROP_FROM_EDGE]);
from_changed = TRUE;
}
if (constraint->to_edge != to_edge)
{
constraint->to_edge = to_edge;
- _clutter_notify_by_pspec (G_OBJECT (constraint),
+ g_object_notify_by_pspec (G_OBJECT (constraint),
obj_props[PROP_TO_EDGE]);
to_changed = TRUE;
}
if (constraint->actor != NULL)
clutter_actor_queue_relayout (constraint->actor);
- _clutter_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_OFFSET]);
+ g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_OFFSET]);
}
/**
priv->source_state_name = priv->target_state_name;
priv->target_state_name = target_state_name;
- _clutter_notify_by_pspec (G_OBJECT (state), obj_props[PROP_STATE]);
+ g_object_notify_by_pspec (G_OBJECT (state), obj_props[PROP_STATE]);
duration = clutter_state_get_duration (state,
priv->source_state_name,
if (priv->selection_bound != priv->position)
{
priv->selection_bound = priv->position;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
}
}
if (priv->text && priv->text[0] != '\0')
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FONT_DESCRIPTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FONT_DESCRIPTION]);
}
static void
/* Not required to be guarded by g_object_freeze/thaw_notify */
if (priv->position != old_position)
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_POSITION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_POSITION]);
if (priv->selection_bound != old_selection)
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
return TRUE;
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
g_signal_emit (self, text_signals[TEXT_CHANGED], 0);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT]);
g_object_thaw_notify (G_OBJECT (self));
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EDITABLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_EDITABLE]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTABLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTABLE]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIVATABLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIVATABLE]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_VISIBLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_VISIBLE]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_COLOR]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_COLOR_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_COLOR]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_COLOR_SET]);
}
/**
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_BOUND]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_COLOR]);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_COLOR_SET]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_COLOR]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SELECTION_COLOR_SET]);
}
/**
clutter_text_set_font_description_internal (self, desc);
priv->is_default_font = is_default_font;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FONT_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FONT_NAME]);
out:
if (is_default_font)
priv->markup_attrs = NULL;
}
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_USE_MARKUP]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_USE_MARKUP]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_COLOR]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_COLOR]);
}
/**
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ELLIPSIZE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ELLIPSIZE]);
}
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_WRAP]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_WRAP]);
}
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_WRAP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_WRAP_MODE]);
}
}
clutter_text_dirty_cache (self);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ATTRIBUTES]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ATTRIBUTES]);
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_ALIGNMENT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LINE_ALIGNMENT]);
}
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_JUSTIFY]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_JUSTIFY]);
}
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_POSITION]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_POSITION]);
}
/**
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_SIZE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_SIZE]);
}
}
clutter_text_dirty_cache (self);
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_PASSWORD_CHAR]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_PASSWORD_CHAR]);
}
}
clutter_text_set_text (self, new);
g_free (new);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAX_LENGTH]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_MAX_LENGTH]);
}
}
g_string_free (new, TRUE);
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_TEXT]);
}
/**
{
priv->activatable = TRUE;
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIVATABLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_ACTIVATABLE]);
}
clutter_text_dirty_cache (self);
clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
- _clutter_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SINGLE_LINE_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_SINGLE_LINE_MODE]);
g_object_thaw_notify (G_OBJECT (self));
}
/* If resized actor may need resizing but paint() will do this */
clutter_actor_queue_redraw (CLUTTER_ACTOR (texture));
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_COGL_TEXTURE]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_COGL_TEXTURE]);
}
static gboolean
g_signal_emit (texture, texture_signals[LOAD_FINISHED], 0, NULL);
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_FILENAME]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_FILENAME]);
return TRUE;
}
clutter_actor_queue_redraw (CLUTTER_ACTOR (texture));
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_FILTER_QUALITY]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_FILTER_QUALITY]);
}
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (texture));
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_SYNC_SIZE]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_SYNC_SIZE]);
}
}
{
priv->repeat_x = repeat_x;
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_REPEAT_X]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_REPEAT_X]);
changed = TRUE;
}
{
priv->repeat_y = repeat_y;
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_REPEAT_Y]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_REPEAT_Y]);
changed = TRUE;
}
clutter_actor_queue_relayout (CLUTTER_ACTOR (texture));
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_KEEP_ASPECT_RATIO]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_KEEP_ASPECT_RATIO]);
}
}
priv->load_async_set = load_async;
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_ASYNC]);
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_DATA_ASYNC]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_ASYNC]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_DATA_ASYNC]);
}
}
priv->load_async_set = load_async;
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_ASYNC]);
- _clutter_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_DATA_ASYNC]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_ASYNC]);
+ g_object_notify_by_pspec (G_OBJECT (texture), obj_props[PROP_LOAD_DATA_ASYNC]);
}
}
object_class->finalize = clutter_timeline_finalize;
object_class->set_property = clutter_timeline_set_property;
object_class->get_property = clutter_timeline_get_property;
- _clutter_object_class_install_properties (object_class,
- PROP_LAST,
- obj_props);
+ g_object_class_install_properties (object_class,
+ PROP_LAST,
+ obj_props);
/**
* ClutterTimeline::new-frame:
else
priv->direction = CLUTTER_TIMELINE_FORWARD;
- _clutter_notify_by_pspec (G_OBJECT (timeline),
+ g_object_notify_by_pspec (G_OBJECT (timeline),
obj_props[PROP_DIRECTION]);
}
{
timeline->priv->loop = loop;
- _clutter_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_LOOP]);
+ g_object_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_LOOP]);
}
}
if (priv->delay != msecs)
{
priv->delay = msecs;
- _clutter_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DELAY]);
+ g_object_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DELAY]);
}
}
{
priv->duration = msecs;
- _clutter_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DURATION]);
+ g_object_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DURATION]);
}
}
if (priv->elapsed_time == 0)
priv->elapsed_time = priv->duration;
- _clutter_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DIRECTION]);
+ g_object_notify_by_pspec (G_OBJECT (timeline), obj_props[PROP_DIRECTION]);
}
}
{
priv->auto_reverse = reverse;
- _clutter_notify_by_pspec (G_OBJECT (timeline),
+ g_object_notify_by_pspec (G_OBJECT (timeline),
obj_props[PROP_AUTO_REVERSE]);
}
}