From: Bluezery <ohpowel@gmail.com>

Subject: [E-devel] [Patch][elm_map] Pause progressbar animator when
map is paused


When map is paused by using elm_map_paused_set(), all existing
animations is stopped.
(ref:
http://docs.enlightenment.org/auto/elementary/group__Map.html#ga6ab43ef6429140f8cccbd3669c5ed52e)
But progress bar can be still running before all download requests are
completed. It is equal to user expectations.

I have fixed this.
if paused is TRUE, stop progress bar.
If paused is FALSE, start progress bar if download requests are
remained.



SVN revision: 66585
This commit is contained in:
Bluezery 2011-12-28 04:18:59 +00:00 committed by Carsten Haitzler
parent e70dcfe130
commit 5f6adf21b6
1 changed files with 8 additions and 0 deletions

View File

@ -3392,6 +3392,14 @@ elm_map_paused_set(Evas_Object *obj, Eina_Bool paused)
zoom_do(obj);
evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
}
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,stop", "elm");
}
else
{
if (wd->download_num >= 1)
edje_object_signal_emit(elm_smart_scroller_edje_object_get(wd->scr),
"elm,state,busy,start", "elm");
}
#else
(void) obj;