aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-03-08 14:23:13 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-03-08 14:23:13 +0100
commit1ae3c86425a66665ae5cc23c2ada3eb422d3e17d (patch)
treec077f3ebbd413fea1093be2fd0ea2a92b292c727
parentevas_canvas3d: add empty functions for missing APIs (diff)
downloadefl-devs/q66/legacy-eo-headers.tar.gz
elementary,evas: remove obsolete legacy includesdevs/q66/legacy-eo-headers
Since the removal of legacy interfaces from eo files, these files contain nothing useful, and can safely be removed. One exception is `efl_ui_layout.eo.legacy.h`, which will require more involved work to remove, since a lot of things seem to depend on the Efl_Ui_Layout typedef being present, wrongly (i suspect this will break everything with `EFL_NOLEGACY_API_SUPPORT`).
-rw-r--r--src/lib/elementary/elm_image_legacy.h2
-rw-r--r--src/lib/elementary/elm_layout_legacy.h1
-rw-r--r--src/lib/elementary/elm_progressbar_legacy.h2
-rw-r--r--src/lib/elementary/elm_scroller_legacy.h40
-rw-r--r--src/lib/elementary/elm_slider_legacy.h2
-rw-r--r--src/lib/evas/Evas_Legacy.h22
6 files changed, 40 insertions, 29 deletions
diff --git a/src/lib/elementary/elm_image_legacy.h b/src/lib/elementary/elm_image_legacy.h
index a53e063a5c..77286c9623 100644
--- a/src/lib/elementary/elm_image_legacy.h
+++ b/src/lib/elementary/elm_image_legacy.h
@@ -553,5 +553,3 @@ EAPI Eina_Bool elm_image_aspect_fixed_get(const Evas_Object *obj);
* @ingroup Elm_Image
*/
EAPI void elm_image_async_open_set(Evas_Object *obj, Eina_Bool async);
-
-#include "efl_ui_image.eo.legacy.h"
diff --git a/src/lib/elementary/elm_layout_legacy.h b/src/lib/elementary/elm_layout_legacy.h
index 58dab5bcc9..fb90fb0d4b 100644
--- a/src/lib/elementary/elm_layout_legacy.h
+++ b/src/lib/elementary/elm_layout_legacy.h
@@ -712,4 +712,5 @@ EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const
*/
EAPI Eina_Bool elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name);
+/* FIXME: this shouldn't have to be included but causes build errors otherwise */
#include "efl_ui_layout.eo.legacy.h"
diff --git a/src/lib/elementary/elm_progressbar_legacy.h b/src/lib/elementary/elm_progressbar_legacy.h
index 8eedf940e5..a6b67991be 100644
--- a/src/lib/elementary/elm_progressbar_legacy.h
+++ b/src/lib/elementary/elm_progressbar_legacy.h
@@ -284,5 +284,3 @@ EAPI void elm_progressbar_part_value_set(Evas_Object *obj, const char *part, dou
* @ingroup Elm_Progressbar
*/
EAPI double elm_progressbar_part_value_get(const Evas_Object *obj, const char *part);
-
-#include "efl_ui_progressbar.eo.legacy.h"
diff --git a/src/lib/elementary/elm_scroller_legacy.h b/src/lib/elementary/elm_scroller_legacy.h
index 6b40eff78f..2e0cec9c17 100644
--- a/src/lib/elementary/elm_scroller_legacy.h
+++ b/src/lib/elementary/elm_scroller_legacy.h
@@ -1,4 +1,42 @@
-#include "elm_interface_scrollable.eo.legacy.h"
+#ifndef _ELM_INTERFACE_SCROLLABLE_EO_TYPES
+#define _ELM_INTERFACE_SCROLLABLE_EO_TYPES
+
+/**
+ * @brief Type that controls when scrollbars should appear.
+ *
+ * See also @ref Elm.Interface_Scrollable.policy.set.
+ *
+ * @ingroup Elm_Scroller
+ */
+typedef enum
+{
+ ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
+ ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
+ ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
+ ELM_SCROLLER_POLICY_LAST /**< Sentinel value to indicate last enum field
+ * during iteration */
+} Elm_Scroller_Policy;
+
+/**
+ * @brief Type that controls how the content is scrolled.
+ *
+ * See also @ref Elm.Interface_Scrollable.single_direction.set.
+ *
+ * @ingroup Elm_Scroller
+ */
+typedef enum
+{
+ ELM_SCROLLER_SINGLE_DIRECTION_NONE = 0, /**< Scroll every direction */
+ ELM_SCROLLER_SINGLE_DIRECTION_SOFT, /**< Scroll single direction if the
+ * direction is certain */
+ ELM_SCROLLER_SINGLE_DIRECTION_HARD, /**< Scroll only single direction */
+ ELM_SCROLLER_SINGLE_DIRECTION_LAST /**< Sentinel value to indicate last enum
+ * field during iteration */
+} Elm_Scroller_Single_Direction;
+
+
+#endif
+
#include "elm_scroller_eo.legacy.h"
/**
diff --git a/src/lib/elementary/elm_slider_legacy.h b/src/lib/elementary/elm_slider_legacy.h
index 99c5097297..aa32dec6b1 100644
--- a/src/lib/elementary/elm_slider_legacy.h
+++ b/src/lib/elementary/elm_slider_legacy.h
@@ -381,5 +381,3 @@ EAPI double elm_slider_step_get(const Evas_Object *obj);
* @ingroup Elm_Slider
*/
EAPI void elm_slider_step_set(Evas_Object *obj, double step);
-
-#include "efl_ui_slider.eo.legacy.h"
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 6347b0cf7f..cf790d390c 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -3526,8 +3526,6 @@ EWAPI Eina_Bool _evas_object_intercept_call(Evas_Object *obj, Evas_Object_Interc
*/
EAPI Evas_Object *evas_object_rectangle_add(Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
-#include "canvas/efl_canvas_rectangle.eo.legacy.h"
-
/**
* @}
*/
@@ -4297,8 +4295,6 @@ EAPI void evas_vg_gradient_spread_set(Eo *obj, Efl_Gfx_Gradient_Spread s);
*/
EAPI Efl_Gfx_Gradient_Spread evas_vg_gradient_spread_get(Eo *obj);
-#include "canvas/efl_canvas_vg_gradient.eo.legacy.h"
-
/**
* Creates a new linear gradient object \.
*
@@ -4348,8 +4344,6 @@ EAPI void evas_vg_gradient_linear_end_set(Eo *obj, double x, double y);
*/
EAPI void evas_vg_gradient_linear_end_get(Eo *obj, double *x, double *y);
-#include "canvas/efl_canvas_vg_gradient_linear.eo.legacy.h"
-
/**
* Creates a new radial gradient object \.
*
@@ -4416,8 +4410,6 @@ EAPI void evas_vg_gradient_radial_focal_set(Eo *obj, double x, double y);
*/
EAPI void evas_vg_gradient_radial_focal_get(Eo *obj, double *x, double *y);
-#include "canvas/efl_canvas_vg_gradient_radial.eo.legacy.h"
-
/**
* @}
*/
@@ -8050,8 +8042,6 @@ EAPI void evas_object_map_enable_set(Evas_Object *obj, Eina_Bool enabled);
*/
EAPI Eina_Bool evas_object_map_enable_get(const Evas_Object *obj);
-#include "canvas/efl_gfx_mapping.eo.legacy.h"
-
/**
* @brief Apply an evas filter program on this text object.
*
@@ -8169,15 +8159,3 @@ EAPI void evas_object_freeze_events_set(Efl_Canvas_Object *obj, Eina_Bool freeze
* @ingroup Evas_Object_Group
*/
EAPI Eina_Bool evas_object_freeze_events_get(const Efl_Canvas_Object *obj);
-
-#include "canvas/efl_canvas_event_grabber_eo.legacy.h"
-
-#include "canvas/efl_canvas_animation_alpha.eo.legacy.h"
-#include "canvas/efl_canvas_animation.eo.legacy.h"
-#include "canvas/efl_canvas_animation_group.eo.legacy.h"
-#include "canvas/efl_canvas_animation_group_parallel.eo.legacy.h"
-#include "canvas/efl_canvas_animation_group_sequential.eo.legacy.h"
-#include "canvas/efl_canvas_animation_player.eo.legacy.h"
-#include "canvas/efl_canvas_animation_rotate.eo.legacy.h"
-#include "canvas/efl_canvas_animation_scale.eo.legacy.h"
-#include "canvas/efl_canvas_animation_translate.eo.legacy.h"