elementary/win - prevent to add the timer multiple times.

This commit is contained in:
ChunEon Park 2013-05-20 19:09:13 +09:00
parent 6ead754e7e
commit 7f7cc5ad39
1 changed files with 3 additions and 1 deletions

View File

@ -519,7 +519,9 @@ _shot_handle(Elm_Win_Smart_Data *sd)
{
if (!sd->shot.info) return;
sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay, sd->obj);
if (!sd->shot.timer)
sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay,
sd->obj);
}
/* elm-win specific associate, does the trap while ecore_evas_object_associate()