elementary/popup - fix the popup that returned invalid action buttons

SVN revision: 81117
This commit is contained in:
ChunEon Park 2012-12-17 10:50:12 +00:00
parent 628bd07534
commit e257f49885
3 changed files with 7 additions and 3 deletions

View File

@ -814,3 +814,7 @@
2012-12-14 Jiyoun Park
* Fix naviframe's resize object problem when item was deleted.
2012-12-17 Chueon Park (Hermet)
* Fix the popup that returned invalid action buttons.

View File

@ -93,6 +93,7 @@ Fixes:
* Update mapbuf forcely whenever it's states are changed.
* Now, dummy object is always smart member of naviframe.
* Fix naviframe's resize object problem when item was deleted.
* Fix the popup that returned invalid action buttons.
Removals:

View File

@ -1111,14 +1111,13 @@ static Evas_Object *
_action_button_get(const Evas_Object *obj,
unsigned int idx)
{
unsigned int num = idx - 1;
Evas_Object *button = NULL;
ELM_POPUP_DATA_GET(obj, sd);
if (!sd->button_count) return NULL;
if (sd->buttons[num])
button = sd->buttons[num]->btn;
if (sd->buttons[idx])
button = sd->buttons[idx]->btn;
return button;
}