From 076037bd55a9d9f4ffe66200f2f30e264e32eb10 Mon Sep 17 00:00:00 2001 From: Jee-Yong Um Date: Fri, 22 Apr 2016 15:17:01 -0700 Subject: [PATCH] edje: add note to the reference of .part_object_get() 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 --- src/lib/edje/edje_object.eo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo index 305684c3c7..5e5cf5bea2 100644 --- a/src/lib/edje/edje_object.eo +++ b/src/lib/edje/edje_object.eo @@ -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 {