mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
gesture-action: Use the event propagation macros
This commit is contained in:
parent
d83fbd7bdf
commit
3b9b69ef54
@ -142,7 +142,7 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
if (!(mods & CLUTTER_BUTTON1_MASK))
|
if (!(mods & CLUTTER_BUTTON1_MASK))
|
||||||
{
|
{
|
||||||
cancel_gesture (action);
|
cancel_gesture (action);
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_event_get_coords (event, &priv->last_motion_x,
|
clutter_event_get_coords (event, &priv->last_motion_x,
|
||||||
@ -152,7 +152,7 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
priv->last_motion_x,
|
priv->last_motion_x,
|
||||||
priv->last_motion_y,
|
priv->last_motion_y,
|
||||||
NULL, NULL))
|
NULL, NULL))
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
|
||||||
if (!priv->in_drag)
|
if (!priv->in_drag)
|
||||||
{
|
{
|
||||||
@ -173,11 +173,11 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
if (!return_value)
|
if (!return_value)
|
||||||
{
|
{
|
||||||
cancel_gesture (action);
|
cancel_gesture (action);
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_signal_emit (action, gesture_signals[GESTURE_PROGRESS], 0, actor,
|
g_signal_emit (action, gesture_signals[GESTURE_PROGRESS], 0, actor,
|
||||||
@ -185,7 +185,7 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
if (!return_value)
|
if (!return_value)
|
||||||
{
|
{
|
||||||
cancel_gesture (action);
|
cancel_gesture (action);
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -209,7 +209,7 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -220,10 +220,10 @@ actor_captured_event_cb (ClutterActor *actor,
|
|||||||
ClutterGestureActionPrivate *priv = action->priv;
|
ClutterGestureActionPrivate *priv = action->priv;
|
||||||
|
|
||||||
if (clutter_event_type (event) != CLUTTER_BUTTON_PRESS)
|
if (clutter_event_type (event) != CLUTTER_BUTTON_PRESS)
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
|
||||||
if (!clutter_actor_meta_get_enabled (CLUTTER_ACTOR_META (action)))
|
if (!clutter_actor_meta_get_enabled (CLUTTER_ACTOR_META (action)))
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
|
||||||
clutter_event_get_coords (event, &priv->press_x, &priv->press_y);
|
clutter_event_get_coords (event, &priv->press_x, &priv->press_y);
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ actor_captured_event_cb (ClutterActor *actor,
|
|||||||
G_CALLBACK (stage_captured_event_cb),
|
G_CALLBACK (stage_captured_event_cb),
|
||||||
action);
|
action);
|
||||||
|
|
||||||
return FALSE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user