win: Add default return value at elm_win_type_get API according to API description.
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 30 Jan 2015 02:04:24 +0000 (11:04 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Fri, 30 Jan 2015 02:04:24 +0000 (11:04 +0900)
Summary: The API must return ELM_WIN_UNKNOWN (-1) when the given object is improper.

Test Plan: None.

Reviewers: woohyun, JackDanielZ, seoz

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

src/lib/elm_win.eo

index 75ca045af813461308d1cd0d6b0a637d7a072cbb..71a5641216a4227c38165e65e4623a541ee1175f 100644 (file)
@@ -1139,7 +1139,7 @@ class Elm_Win (Elm_Widget, Elm_Interface_Atspi_Window,
             @return The type of a window object. If the object is not window object, return #ELM_WIN_UNKNOWN.
 
             @ingroup Win */
-            return: Elm_Win_Type;
+            return: Elm_Win_Type(-1);
          }
       }
       noblank {