From e257f498852f8eb15b31c45916e7f60b17ddd210 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 17 Dec 2012 10:50:12 +0000 Subject: [PATCH] elementary/popup - fix the popup that returned invalid action buttons SVN revision: 81117 --- legacy/elementary/ChangeLog | 4 ++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elc_popup.c | 5 ++--- 3 files changed, 7 insertions(+), 3 deletions(-) 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; }