elm: Use EFL_UI_WIN_CLASS to check if an object is window
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 6 Dec 2017 05:54:49 +0000 (14:54 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 6 Dec 2017 05:54:49 +0000 (14:54 +0900)
The EFL_ACCESS_WINDOW_INTERFACE was used to check if an object is window.
This could make sense. But it would be better to use EFL_UI_WIN_CLASS for
consistency.

src/lib/elementary/elm_widget.c

index 7b7497b..a059c32 100644 (file)
@@ -3882,7 +3882,7 @@ _elm_widget_onscreen_is(Evas_Object *widget)
      return EINA_FALSE;
 
    // window does not have to check viewport and geometry
-   if (efl_isa(widget, EFL_ACCESS_WINDOW_INTERFACE))
+   if (efl_isa(widget, EFL_UI_WIN_CLASS))
       return EINA_TRUE;
 
    // check if on canvas