edje object: return EDJE_EXTERNAL_PARAM_TYPE_MAX properly
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 21 Dec 2016 13:41:05 +0000 (14:41 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 21 Dec 2016 13:41:05 +0000 (14:41 +0100)
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

index 4cfded6..1eefa0a 100644 (file)
@@ -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]]