diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 7214dcf3ed..5946cc2bc2 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -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. diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index 6c62c074b2..93e900f6bf 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -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: diff --git a/legacy/elementary/src/lib/elc_popup.c b/legacy/elementary/src/lib/elc_popup.c index cc3e6a447c..062ea6582d 100644 --- a/legacy/elementary/src/lib/elc_popup.c +++ b/legacy/elementary/src/lib/elc_popup.c @@ -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; }