Follow recent elementary changes about elm_genlist_item_index_get
authorryuan <ryuan.choi@samsung.com>
Tue, 2 Apr 2013 07:34:00 +0000 (16:34 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 2 Apr 2013 08:43:12 +0000 (17:43 +0900)
[Title] Follow recent elementary changes about elm_genlist_item_index_get
[Issue#] N_SE-30897
[Problem] elementary was changed about index_get.
[Cause]
[Solution] Follow changes.

Change-Id: I5ba5ebceb48455083ef8b977f770e21db5b949c2

Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp
Source/WebKit2/UIProcess/API/efl/tizen/ewk_popup_picker.cpp

index 31806b0..346c473 100755 (executable)
@@ -46,7 +46,7 @@ static char* getItemLabel(void* data, Evas_Object* obj, const char* part)
 }
 static void itemSelectCb(void* data, Evas_Object* obj, void* event_info)
 {
-    int index = elm_genlist_item_index_get(elm_genlist_selected_item_get(obj))-1;
+    int index = elm_genlist_item_index_get(elm_genlist_selected_item_get(obj));
 
     FormDataCandidatePopup* candidatePopup = static_cast<FormDataCandidatePopup*>(data);
     candidatePopup->m_formDataCandidate->setValueForInputElement(m_formdata[index]);
index d0cf7ff..88fe46b 100644 (file)
@@ -42,7 +42,7 @@ void menuItemActivated(void* data, Evas_Object* obj, void* event_info)
 {
     Ewk_Popup_Picker* picker = static_cast<Ewk_Popup_Picker*>(data);
     Elm_Object_Item* selected = static_cast<Elm_Object_Item*>(event_info);
-    int index = elm_genlist_item_index_get(selected) - 1;
+    int index = elm_genlist_item_index_get(selected);
 
 #if ENABLE(TIZEN_MULTIPLE_SELECT)
     if (picker->multiSelect) {
@@ -65,7 +65,7 @@ void menuItemDeactivated(void* data, Evas_Object* obj, void* event_info)
     Ewk_Popup_Picker* picker = static_cast<Ewk_Popup_Picker*>(data);
     Elm_Object_Item* deselectedItem = static_cast<Elm_Object_Item*>(event_info);
 
-    int deselectedIndex = elm_genlist_item_index_get(deselectedItem) - 1;
+    int deselectedIndex = elm_genlist_item_index_get(deselectedItem);
     int pos = eina_inarray_search(picker->changedList, &deselectedIndex, compareChangedItems);
 
     if (pos == -1)