Skip to content
Snippets Groups Projects
Commit e7fd2d96 authored by Ramya Ajiri's avatar Ramya Ajiri Committed by Frédéric Dalleau
Browse files

Emit roller-item-activated signal for list


If roll-over is FALSE, roller-item-activated signal not emitted
Hence added the code for emiting signal.

Signed-off-by: default avatarRamya Ajiri <ramya.ajiri@in.bosch.com>
Reviewed-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
Differential Revision: https://phabricator.apertis.org/D6165
parent 4ed7b5fc
No related branches found
No related tags found
No related merge requests found
......@@ -1371,30 +1371,28 @@ release_event (ClutterActor *actor,
return CLUTTER_EVENT_PROPAGATE;
/* If rollover is disabled allow item selection without briging the item to mid of roller */
if (priv->rollover_enabled == FALSE)
if (priv->rollover_enabled)
{
return CLUTTER_EVENT_PROPAGATE;
}
/* Roller Animation Issue */
unfocused = focus_row (self, row, TRUE, FALSE, -1, -1, -1);
/* Roller Animation Issue */
unfocused = focus_row (self, row, TRUE, FALSE, -1, -1, -1);
/* If the row isn't in the middle of window,
* it assumes that the event is about scrolling up and down */
if (unfocused)
{
return CLUTTER_EVENT_PROPAGATE;
}
/* If the row isn't in the middle of window,
* it assumes that the event is about scrolling up and down */
if (unfocused)
{
return CLUTTER_EVENT_PROPAGATE;
}
/* when row returned is 0 or the max value in the model,
* then it is always first row in the roller */
if (row == 0 || row == thornbury_model_get_n_rows (priv->model))
row = 0;
/* when row returned is 0 or the max value in the model,
* then it is always first row in the roller */
if (row == 0 || row == thornbury_model_get_n_rows (priv->model))
row = 0;
if (priv->glow == TRUE)
{
lightwood_roller_set_glow_row (LIGHTWOOD_ROLLER (actor), row);
if (priv->glow == TRUE)
{
lightwood_roller_set_glow_row (LIGHTWOOD_ROLLER (actor), row);
}
}
g_debug ("ROLLER:ITEM_ACTIVATED");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment