efl_ui: cleanup elm headers
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 12 Dec 2019 01:37:16 +0000 (01:37 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 12 Dec 2019 20:52:07 +0000 (05:52 +0900)
since e2980cd9812113fc4a216749eb23d7611b02fd55, `efl.ui.text` doesn't need
`elm_general.h`.

This partially reverts commit 96be3cd83d3426c5a9eb8d903245c51927567dc6.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10849

16 files changed:
src/bin/elementary/test_efl_ui_animation_view.c
src/bin/elementary/test_efl_ui_text.c
src/bin/elementary/test_gfx_filters.c
src/bin/elementary/test_part_bg.c
src/bin/elementary/test_photocam.c
src/bin/elementary/test_ui_clock.c
src/bin/elementary/test_ui_collection.c
src/bin/elementary/test_ui_frame.c
src/bin/elementary/test_ui_image.c
src/bin/elementary/test_ui_items.c
src/bin/elementary/test_ui_relative_container.c
src/bin/elementary/test_ui_slider.c
src/bin/elementary/test_ui_slider_interval.c
src/bin/elementary/test_win_dialog.c
src/examples/elementary/efl_ui_list_example_1.c
src/lib/elementary/elm_priv.h

index b086a1b..f5a73df 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Elementary.h>
 #include <Efl_Ui.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
+
 #ifndef EFL_BETA_API_SUPPORT
 #define EFL_BETA_API_SUPPORT
 #endif
index f14d25d..066e732 100644 (file)
@@ -4,7 +4,6 @@
 #define EO_BETA_API
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.text doesn't need elm_general.h
 
 static void
 _apply_style(Eo *obj, size_t start_pos, size_t end_pos, const char *style)
index 8fb84ab..7ab9a63 100644 (file)
@@ -5,7 +5,7 @@
 #include <Elementary.h>
 #include <Efl_Ui.h>
 #include "elm_spinner_eo.h"
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static const int default_font_size = 48;
 
 typedef struct _Filter_Image
index 1ee74d7..850377b 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 #define MAX_NUM_OF_CONTENT 17
 
 const Efl_Class *content_class[MAX_NUM_OF_CONTENT];
index 6de8bde..166f669 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static const struct {
  Evas_Image_Orient orient;
  const char *name;
index c2840a6..79e9074 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 /* A simple test, just displaying clock in its default format */
 
 Evas_Object *dt1, *dt2, *dt3, *dt4;
index 2397e14..6e4d832 100644 (file)
@@ -2,7 +2,6 @@
 # include "elementary_config.h"
 #endif
 
-#include <Elementary.h>
 #include <Efl_Ui.h>
 
 static void
@@ -114,7 +113,7 @@ _add_item(Efl_Ui_Collection *c, Eo *cont)
    snprintf(buf, sizeof(buf), "%d - Test %d", i, i%13);
    efl_text_set(il, buf);
 
-   rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas_object_evas_get(c));
+   rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, c);
    switch (i % 5)
      {
       case 0:
@@ -312,14 +311,14 @@ void create_item_container_ui(const Efl_Class *collection_class, const Efl_Class
 }
 
 void test_efl_ui_collection_grid(void *data EINA_UNUSED,
-                                   Evas_Object *obj EINA_UNUSED,
+                                   Efl_Object *obj EINA_UNUSED,
                                    void *event_info EINA_UNUSED)
 {
    create_item_container_ui(EFL_UI_GRID_CLASS, EFL_UI_GRID_DEFAULT_ITEM_CLASS, "Efl.Ui.Grid");
 }
 
 void test_efl_ui_collection_list(void *data EINA_UNUSED,
-                                   Evas_Object *obj EINA_UNUSED,
+                                   Efl_Object *obj EINA_UNUSED,
                                    void *event_info EINA_UNUSED)
 {
    create_item_container_ui(EFL_UI_LIST_CLASS, EFL_UI_LIST_DEFAULT_ITEM_CLASS, "Efl.Ui.List");
index 2c152c9..4271f41 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static void
 _inc_clicked(void *data, const Efl_Event *ev EINA_UNUSED)
 {
index 1608605..fc8a9fb 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Elementary.h>
 #include <Efl_Ui.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static const struct {
    Efl_Gfx_Image_Orientation orient;
    const char *name;
index 826f4e4..36c5f97 100644 (file)
@@ -2,7 +2,6 @@
 # include "elementary_config.h"
 #endif
 
-#include <Elementary.h>
 #include <Efl_Ui.h>
 
 static Efl_Ui_Widget*
@@ -15,7 +14,7 @@ _item_add(Eo *box, const Efl_Class *c, int i)
    snprintf(buf, sizeof(buf), "%d - Test %d", i, i%13);
    efl_text_set(il, buf);
 
-   rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas_object_evas_get(il));
+   rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, il);
    switch (i % 5)
      {
       case 0:
@@ -49,7 +48,7 @@ _item_add(Eo *box, const Efl_Class *c, int i)
 }
 
 void test_efl_ui_item(void *data EINA_UNUSED,
-                      Evas_Object *obj EINA_UNUSED,
+                      Efl_Object *obj EINA_UNUSED,
                       void *event_info EINA_UNUSED)
 {
    Eo *win, *box, *o;
index 4495103..90ea534 100644 (file)
@@ -4,8 +4,8 @@
 
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
 #include "test.h"
+
 static Eo *layout, *btn1, *btn2, *btn3;
 
 typedef enum {
index 90932a8..81d4cf1 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static void
 _slider_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
 {
index 09d97be..29dd76b 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 #include <Efl_Ui.h>
 #include <Elementary.h>
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
+
 static double
 _step_size_calculate(double min, double max)
 {
index f2b0a16..0504669 100644 (file)
@@ -4,8 +4,6 @@
 #include <Efl_Ui.h>
 #include <Elementary.h>
 
-#include "elm_priv.h" //FIXME remove this once efl.ui.textbox doesn't need elm_general.h
-
 static void
 _bt_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
 {
index 7a010fb..d9ade67 100644 (file)
 #include <Eio.h>
 #include <stdio.h>
 
-//FIXME this can go away when efl_ui_text doesn't need elm_general
-# include <elm_general.h>
-# include <efl_text_interactive.eo.h>
-# include <efl_ui_textbox.eo.h>
-# include <efl_ui_textbox_async.eo.h>
-
 #define NUM_ITEMS 400
 
 typedef struct _List_Scroll_Data {
index 37ef59b..e08e3c0 100644 (file)
 # include "efl_ui_selection_manager.eo.h"
 # include "efl_datetime_manager.eo.h"
 
-//FIXME this needs to not use elm_general.h and go to Efl_Ui.h
-# include <elm_general.h>
-# include <efl_text_interactive.eo.h>
-# include <efl_ui_textbox.eo.h>
-# include <efl_ui_textbox_async.eo.h>
-
 extern const char *_efl_model_property_itemw;
 extern const char *_efl_model_property_itemh;
 extern const char *_efl_model_property_selfw;