Do not use contractions when not needed
I understand we are not Pascal developers, and we don't have to use cute and cuddly names like "i_am_an_integer_counter", but a ClutterButtonEvent should be stored inside an "event" variable. Using "bev" instead? Mmmh, not so much.
This commit is contained in:
parent
2ca7cb46f9
commit
77b3b9d5f4
@ -821,15 +821,15 @@ cursor_paint (ClutterText *self)
|
||||
|
||||
static gboolean
|
||||
clutter_text_button_press (ClutterActor *actor,
|
||||
ClutterButtonEvent *bev)
|
||||
ClutterButtonEvent *event)
|
||||
{
|
||||
ClutterText *self = CLUTTER_TEXT (actor);
|
||||
ClutterTextPrivate *priv = self->priv;
|
||||
ClutterUnit x, y;
|
||||
gint index_;
|
||||
|
||||
x = CLUTTER_UNITS_FROM_INT (bev->x);
|
||||
y = CLUTTER_UNITS_FROM_INT (bev->y);
|
||||
x = CLUTTER_UNITS_FROM_INT (event->x);
|
||||
y = CLUTTER_UNITS_FROM_INT (event->y);
|
||||
|
||||
clutter_actor_transform_stage_point (actor, x, y, &x, &y);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user