From b74dd5b7f4ae4a91555f590225a57896e1cd19e9 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 21 Dec 2016 14:41:05 +0100 Subject: [PATCH] edje object: return EDJE_EXTERNAL_PARAM_TYPE_MAX properly The getter of part_external_type should return this enum value on error. Thanks Artem Popov for original fix, which however involved using an integer value directly instead of the less error-prone enum (see D4502). --- src/lib/edje/edje_object.eo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo index 4cfded6..1eefa0a 100644 --- a/src/lib/edje/edje_object.eo +++ b/src/lib/edje/edje_object.eo @@ -1097,8 +1097,10 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part, @property part_external_param_type { get { [[Facility to query the type of the given parameter of the given part.]] - return: Edje.External.Param_Type; [[#EDJE_EXTERNAL_PARAM_TYPE_MAX on errors, or another value - from #Edje_External_Param_Type on success.]] + return: Edje.External.Param_Type(Edje.External.Param_Type.max); [[ + #EDJE_EXTERNAL_PARAM_TYPE_MAX on errors, or another value + from #Edje_External_Param_Type on success. + ]] } keys { part: string; [[The part name]] -- 2.7.4