fileselector: Do not call _populate directly in APIs
authorRyuan Choi <ryuan.choi@gmail.com>
Wed, 29 Oct 2014 01:07:44 +0000 (10:07 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Wed, 29 Oct 2014 03:57:31 +0000 (12:57 +0900)
commit3b392e004590ae930db4e4f145a8ed62252c2801
treea9ab291cb1dec5c331607c9c128b798bcb9c7ed8
parent0281c063bfbd6e97bef5a28f846e84e8011d38eb
fileselector: Do not call _populate directly in APIs

Summary:
User application may call some fileselector APIs to configure fileselector instance.
And some of them may call _populate but only last request is needed.
However, T1663 raises that last request might be rejected with expansion option and
multiple requests of _populate.
It's because expansion mode do not allow next _populate until previous one is finished.

So, this patch fixes it via scheduling _populate instead of calling _populate() directly in APIs.

@fix

Maniphest Tasks: T1663
src/lib/elc_fileselector.c
src/lib/elm_widget_fileselector.h