summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-02 09:11:25 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-02 09:21:16 +0900
commite3107621027c0dc32aed58c884c95cd389632585 (patch)
tree08b3fa5bb70173acc1144016b38fe02970bfa2ea
parent991c8e03556ab9963b69f0cd8281342bfca01392 (diff)
image: Remove unnecessary parameter for elm_obj_image_editable_set.
This parameter was introduced as an internal funciton parameter long ago and migrated to eo as it was. But this parameter is not needed. obj pointer is already there. Thanks to Yakov for the report.
-rw-r--r--src/lib/elm_image.c7
-rw-r--r--src/lib/elm_image_eo.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 981b834a3..79d1b7106 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -1461,7 +1461,7 @@ elm_image_editable_set(Evas_Object *obj,
1461 Eina_Bool set) 1461 Eina_Bool set)
1462{ 1462{
1463 ELM_IMAGE_CHECK(obj); 1463 ELM_IMAGE_CHECK(obj);
1464 eo_do(obj, elm_obj_image_editable_set(set, obj)); 1464 eo_do(obj, elm_obj_image_editable_set(set));
1465} 1465}
1466 1466
1467/** 1467/**
@@ -1473,7 +1473,6 @@ _elm_image_smart_editable_set(Eo *obj, void *_pd, va_list *list)
1473{ 1473{
1474 Elm_Image_Smart_Data *sd = _pd; 1474 Elm_Image_Smart_Data *sd = _pd;
1475 Eina_Bool edit = va_arg(*list, int); 1475 Eina_Bool edit = va_arg(*list, int);
1476 Evas_Object *parent = va_arg(*list, Evas_Object *);
1477 1476
1478 if (sd->edje) 1477 if (sd->edje)
1479 { 1478 {
@@ -1493,14 +1492,14 @@ _elm_image_smart_editable_set(Eo *obj, void *_pd, va_list *list)
1493 NULL, NULL, 1492 NULL, NULL,
1494 NULL, NULL, 1493 NULL, NULL,
1495 NULL, NULL, 1494 NULL, NULL,
1496 _elm_image_drag_n_drop_cb, parent); 1495 _elm_image_drag_n_drop_cb, obj);
1497 else 1496 else
1498 elm_drop_target_del 1497 elm_drop_target_del
1499 (obj, ELM_SEL_FORMAT_IMAGE, 1498 (obj, ELM_SEL_FORMAT_IMAGE,
1500 NULL, NULL, 1499 NULL, NULL,
1501 NULL, NULL, 1500 NULL, NULL,
1502 NULL, NULL, 1501 NULL, NULL,
1503 _elm_image_drag_n_drop_cb, parent); 1502 _elm_image_drag_n_drop_cb, obj);
1504} 1503}
1505 1504
1506EAPI Eina_Bool 1505EAPI Eina_Bool
diff --git a/src/lib/elm_image_eo.h b/src/lib/elm_image_eo.h
index f65812fae..4a5358a8f 100644
--- a/src/lib/elm_image_eo.h
+++ b/src/lib/elm_image_eo.h
@@ -289,11 +289,10 @@ enum
289 * Make the image 'editable'. 289 * Make the image 'editable'.
290 * 290 *
291 * @param[in] set 291 * @param[in] set
292 * @param[in] parent
293 * 292 *
294 * @see elm_image_editable_set 293 * @see elm_image_editable_set
295 */ 294 */
296#define elm_obj_image_editable_set(set, parent) ELM_OBJ_IMAGE_ID(ELM_OBJ_IMAGE_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, set), EO_TYPECHECK(Evas_Object *, parent) 295#define elm_obj_image_editable_set(set) ELM_OBJ_IMAGE_ID(ELM_OBJ_IMAGE_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, set)
297 296
298/** 297/**
299 * @def elm_obj_image_editable_get 298 * @def elm_obj_image_editable_get