forked from enlightenment/efl
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
This commit is contained in:
parent
10ea932262
commit
ec264c5002
|
@ -61,8 +61,6 @@ void _elm_code_widget_delete(Elm_Code_Widget *widget);
|
||||||
|
|
||||||
void _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text);
|
void _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text);
|
||||||
|
|
||||||
void _elm_code_widget_tooltip_add(Evas_Object *widget);
|
|
||||||
|
|
||||||
EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget);
|
EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget);
|
||||||
|
|
||||||
void _elm_code_widget_selection_delete_no_undo(Elm_Code_Widget *widget);
|
void _elm_code_widget_selection_delete_no_undo(Elm_Code_Widget *widget);
|
||||||
|
|
|
@ -3929,15 +3929,21 @@ _elm_widget_style_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EAPI void
|
||||||
_elm_widget_tooltip_add(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Elm_Tooltip *tt)
|
elm_widget_tooltip_add(Eo *obj, Elm_Tooltip *tt)
|
||||||
{
|
{
|
||||||
|
Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
|
||||||
|
if (!sd) return;
|
||||||
|
|
||||||
sd->tooltips = eina_list_append(sd->tooltips, tt);
|
sd->tooltips = eina_list_append(sd->tooltips, tt);
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EAPI void
|
||||||
_elm_widget_tooltip_del(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd, Elm_Tooltip *tt)
|
elm_widget_tooltip_del(Eo *obj, Elm_Tooltip *tt)
|
||||||
{
|
{
|
||||||
|
Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
|
||||||
|
if (!sd) return;
|
||||||
|
|
||||||
sd->tooltips = eina_list_remove(sd->tooltips, tt);
|
sd->tooltips = eina_list_remove(sd->tooltips, tt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ enum Elm.Activate
|
||||||
back, [[Activate back]]
|
back, [[Activate back]]
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Elm.Tooltip; [[Elementary tooltip]]
|
|
||||||
struct @extern Elm.Theme; [[Elementary theme]]
|
struct @extern Elm.Theme; [[Elementary theme]]
|
||||||
|
|
||||||
abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
|
abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
|
||||||
|
@ -635,12 +634,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
|
||||||
scroll_freeze_pop {
|
scroll_freeze_pop {
|
||||||
[[Pop scroller freeze]]
|
[[Pop scroller freeze]]
|
||||||
}
|
}
|
||||||
tooltip_del {
|
|
||||||
[[Delet widget tooltip]]
|
|
||||||
params {
|
|
||||||
@in tt: ptr(Elm.Tooltip); [[Tooltip to be deleted]]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
focus_next_get @const {
|
focus_next_get @const {
|
||||||
[[Get next focus item]]
|
[[Get next focus item]]
|
||||||
return: bool; [[$true on success, $false otherwise]]
|
return: bool; [[$true on success, $false otherwise]]
|
||||||
|
|
|
@ -489,6 +489,9 @@ typedef struct _Elm_Action Elm_Action;
|
||||||
/** Internal type for mouse cursors */
|
/** Internal type for mouse cursors */
|
||||||
typedef struct _Elm_Cursor Elm_Cursor;
|
typedef struct _Elm_Cursor Elm_Cursor;
|
||||||
|
|
||||||
|
/** Internal type for tooltips */
|
||||||
|
typedef struct _Elm_Tooltip Elm_Tooltip;
|
||||||
|
|
||||||
#define ELM_ACCESS_DONE -1 /* sentence done - send done event here */
|
#define ELM_ACCESS_DONE -1 /* sentence done - send done event here */
|
||||||
#define ELM_ACCESS_CANCEL -2 /* stop reading immediately */
|
#define ELM_ACCESS_CANCEL -2 /* stop reading immediately */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue