edje: add note to the reference of .part_object_get()
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 22 Apr 2016 22:17:01 +0000 (15:17 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Fri, 22 Apr 2016 22:17:05 +0000 (15:17 -0700)
Summary:
For EDJE_RP_TYPE_SWALLOW objects (like GROUP, SWALLOW, EXTERNAL),
edje_object_part_object_get() will return NULL or transparent rectangle.
The note is added to have developers use edje_object_part_swallow_get()
in that case.

Reviewers: jpeg, Hermet, cedric

Reviewed By: cedric

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3859

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/lib/edje/edje_object.eo

index 305684c..5e5cf5b 100644 (file)
@@ -1202,7 +1202,11 @@ class Edje.Object (Evas.Smart_Clipped, Efl.File)
            because it's meant to be managed by Edje, solely. You are safe to
            query information about its current state (with
            evas_object_visible_get() or \@ref evas_object_color_get() for
-           example), though.]]
+           example), though.
+
+           Note: If the type of Edje part is GROUP, SWALLOW or EXTERNAL,
+           returned handle by this function will indicate nothing or transparent
+           rectangle for events. Use @.part_swallow_get() in that case.]]
          return: const(Evas.Object)*; [[A pointer to the Evas object implementing the given part,
                                         or $null on failure (e.g. the given part doesn't exist)]]
          params {