[elm_genlist.c] change elm_genlist_item_rename_mode_set api return value
authorSeunggyun Kim <sgyun.kim@samsung.com>
Tue, 1 Feb 2011 09:44:06 +0000 (18:44 +0900)
committerSeunggyun Kim <sgyun.kim@samsung.com>
Tue, 1 Feb 2011 09:44:06 +0000 (18:44 +0900)
src/lib/Elementary.h.in
src/lib/elm_genlist.c

index 340913f..02ae4c5 100644 (file)
@@ -1880,7 +1880,7 @@ extern "C" {
    EAPI Eina_List         *elm_genlist_edit_selected_items_get(const Evas_Object *obj);
    EAPI void               elm_genlist_edit_item_selected_set(Elm_Genlist_Item *it, Eina_Bool selected) EINA_ARG_NONNULL(1);
    EAPI const Eina_Bool    elm_genlist_edit_item_selected_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);;
-   EAPI void               elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode);
+   EAPI Evas_Object       *elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode);
    EAPI void               elm_genlist_item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after );
    EAPI void               elm_genlist_item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before);
    EAPI void               elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode);
index 4c18d79..f087ec8 100644 (file)
@@ -6332,7 +6332,7 @@ elm_genlist_edit_item_selected_get(const Elm_Genlist_Item *it)
  *
  * @ingroup Genlist
  */
-EAPI void
+EAPI Evas_Object *
 elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
 {
    if (!it) return;
@@ -6430,7 +6430,7 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
                             s = it->itc->func.label_get((void *)it->base.data, it->base.widget, list->data);
                             if (s)
                               {
-                                 Evas_Object *entry = elm_editfield_entry_get(editfield);
+                                 entry = elm_editfield_entry_get(editfield);
                                  elm_entry_entry_set(entry,s);
                                  free(s);
                               }
@@ -6442,8 +6442,9 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
                   label_cnt++;
                }
           }                    
-     }
-
+     }\r
+     
+   return entry;
 }
 
 static void _sweep_finish(void *data, Evas_Object *o, const char *emission, const char *source)