From 1e0b005829afdc73fe08c7d254a180cb7f5c2b8c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 18 Sep 2017 22:29:20 +0900 Subject: [PATCH] text: Remove unused EO structs Bad copy & paste? --- src/lib/elementary/efl_ui_text.c | 8 +++---- src/lib/elementary/efl_ui_text.eo | 49 --------------------------------------- 2 files changed, 4 insertions(+), 53 deletions(-) diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index 34e13e8..c908bed 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c @@ -2333,11 +2333,11 @@ _anchor_hover_clicked_cb(void *data, const Efl_Event *event EINA_UNUSED) static void _entry_hover_anchor_clicked_do(Evas_Object *obj, - Efl_Ui_Text_Anchor_Info *info) + Elm_Entry_Anchor_Info *info) { Evas_Object *hover_parent; Evas_Coord x, w, y, h, px, py; - Efl_Ui_Text_Anchor_Hover_Info ei; + Elm_Entry_Anchor_Hover_Info ei; EFL_UI_TEXT_DATA_GET(obj, sd); @@ -5027,7 +5027,7 @@ _text_anchor_mouse_down_cb(void *data, Evas *e EINA_UNUSED, EFL_UI_TEXT_DATA_GET(obj, pd); Anchor *an = data; - Efl_Ui_Text_Anchor_Info ei; + Elm_Entry_Anchor_Info ei; ei.x = ei.y = ei.w = ei.h = 0; ei.name = an->name; @@ -5042,7 +5042,7 @@ _text_anchor_mouse_up_cb(void *data, Evas *e EINA_UNUSED, { EFL_UI_TEXT_DATA_GET(obj, pd); - Efl_Ui_Text_Anchor_Info ei; + Elm_Entry_Anchor_Info ei; Anchor *an = data; ei.x = ei.y = ei.w = ei.h = 0; diff --git a/src/lib/elementary/efl_ui_text.eo b/src/lib/elementary/efl_ui_text.eo index 992b178..6119d30 100644 --- a/src/lib/elementary/efl_ui_text.eo +++ b/src/lib/elementary/efl_ui_text.eo @@ -1,55 +1,6 @@ import elm_general; import elm_entry; -struct Efl.Ui.Text.Anchor_Info -{ - [[EFL UI text anchor information]] - name: string; [[The name of the anchor, as stated in its href.]] - button: int; [[The mouse button used to click on it.]] - x: int; [[Anchor geometry, relative to canvas.]] - y: int; [[Anchor geometry, relative to canvas.]] - w: int; [[Anchor geometry, relative to canvas.]] - h: int; [[Anchor geometry, relative to canvas.]] -} - -struct Efl.Ui.Text.Hover_Parent -{ - [[EFL text hover parent]] - x: int; [[Hover parent X coordinate]] - y: int; [[Hover parent Y coordinate]] - w: int; [[Hover parent width]] - h: int; [[Hover parent height]] -} - -struct Efl.Ui.Text.Anchor_Hover_Info -{ - [[EFL text anchor hover information]] - anchor_info: ptr(const(Efl.Ui.Text.Anchor_Info)); [[The actual anchor info.]] - hover: Elm.Hover; [[The hover object to use for the popup.]] - hover_parent: Efl.Ui.Text.Hover_Parent; [[Hover parent widget]] - hover_left : bool; [[Hint indicating if there's space - for content on the left side of - the hover. Before calling the - callback, the widget will make the - necessary calculations to check - which sides are fit to be set with - content, based on the position the - hover is activated and its distance - to the edges of its parent object - ]] - hover_right : bool; [[Hint indicating content fits on - the right side of the hover. - See @.hover_left. - ]] - hover_top : bool; [[Hint indicating content fits on top - of the hover. @.hover_left. - ]] - hover_bottom : bool; [[Hint indicating content fits - below the hover. See - @.hover_left. - ]] -} - class Efl.Ui.Text (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable, Elm.Interface.Atspi.Text, Elm.Interface.Atspi.Text.Editable, Efl.File, Efl.Ui.Selectable, Efl.Ui.Scrollable, Efl.Ui.Text.Interactive) -- 2.7.4