summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 16:04:49 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 19:20:47 +0900
commitec264c500248f9026c398571e9dc7f3eea671685 (patch)
tree97fa79829ad890e18446c66207fc43029b51864a
parent10ea93226215c4ab9c185b5a481052e728a26256 (diff)
widget: Remove tooltip_add/del from EO
It's pretty much an internal function. NOTE: Tooltip API is not bound to EO (yet). Ref T5363
-rw-r--r--src/lib/elementary/elm_code_widget_private.h2
-rw-r--r--src/lib/elementary/elm_widget.c14
-rw-r--r--src/lib/elementary/elm_widget.eo7
-rw-r--r--src/lib/elementary/elm_widget.h3
4 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/elementary/elm_code_widget_private.h b/src/lib/elementary/elm_code_widget_private.h
index ebedec3ad7..d9e071c246 100644
--- a/src/lib/elementary/elm_code_widget_private.h
+++ b/src/lib/elementary/elm_code_widget_private.h
@@ -61,8 +61,6 @@ void _elm_code_widget_delete(Elm_Code_Widget *widget);
61 61
62void _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text); 62void _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text);
63 63
64void _elm_code_widget_tooltip_add(Evas_Object *widget);
65
66EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget); 64EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget);
67 65
68void _elm_code_widget_selection_delete_no_undo(Elm_Code_Widget *widget); 66void _elm_code_widget_selection_delete_no_undo(Elm_Code_Widget *widget);
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index bfd0094cca..eb3fc6dc73 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -3929,15 +3929,21 @@ _elm_widget_style_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
3929 return ret; 3929 return ret;
3930} 3930}
3931 3931
3932EOLIAN static void 3932EAPI void
3933_elm_widget_tooltip_add(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Elm_Tooltip *tt) 3933elm_widget_tooltip_add(Eo *obj, Elm_Tooltip *tt)
3934{ 3934{
3935 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
3936 if (!sd) return;
3937
3935 sd->tooltips = eina_list_append(sd->tooltips, tt); 3938 sd->tooltips = eina_list_append(sd->tooltips, tt);
3936} 3939}
3937 3940
3938EOLIAN static void 3941EAPI void
3939_elm_widget_tooltip_del(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Elm_Tooltip *tt) 3942elm_widget_tooltip_del(Eo *obj, Elm_Tooltip *tt)
3940{ 3943{
3944 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
3945 if (!sd) return;
3946
3941 sd->tooltips = eina_list_remove(sd->tooltips, tt); 3947 sd->tooltips = eina_list_remove(sd->tooltips, tt);
3942} 3948}
3943 3949
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index b01005a554..02e0f9e6ed 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -23,7 +23,6 @@ enum Elm.Activate
23 back, [[Activate back]] 23 back, [[Activate back]]
24} 24}
25 25
26struct Elm.Tooltip; [[Elementary tooltip]]
27struct @extern Elm.Theme; [[Elementary theme]] 26struct @extern Elm.Theme; [[Elementary theme]]
28 27
29abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible, 28abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
@@ -635,12 +634,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
635 scroll_freeze_pop { 634 scroll_freeze_pop {
636 [[Pop scroller freeze]] 635 [[Pop scroller freeze]]
637 } 636 }
638 tooltip_del {
639 [[Delet widget tooltip]]
640 params {
641 @in tt: ptr(Elm.Tooltip); [[Tooltip to be deleted]]
642 }
643 }
644 focus_next_get @const { 637 focus_next_get @const {
645 [[Get next focus item]] 638 [[Get next focus item]]
646 return: bool; [[$true on success, $false otherwise]] 639 return: bool; [[$true on success, $false otherwise]]
diff --git a/src/lib/elementary/elm_widget.h b/src/lib/elementary/elm_widget.h
index 05f2102618..2b1535968f 100644
--- a/src/lib/elementary/elm_widget.h
+++ b/src/lib/elementary/elm_widget.h
@@ -489,6 +489,9 @@ typedef struct _Elm_Action Elm_Action;
489/** Internal type for mouse cursors */ 489/** Internal type for mouse cursors */
490typedef struct _Elm_Cursor Elm_Cursor; 490typedef struct _Elm_Cursor Elm_Cursor;
491 491
492/** Internal type for tooltips */
493typedef struct _Elm_Tooltip Elm_Tooltip;
494
492#define ELM_ACCESS_DONE -1 /* sentence done - send done event here */ 495#define ELM_ACCESS_DONE -1 /* sentence done - send done event here */
493#define ELM_ACCESS_CANCEL -2 /* stop reading immediately */ 496#define ELM_ACCESS_CANCEL -2 /* stop reading immediately */
494 497