Thanks to Davide Andreoli for his review and suggestion.
hoversel = elm_hoversel_add(win);
elm_hoversel_scrollable_set(hoversel, EINA_TRUE);
- elm_hoversel_label_auto_changed_set(hoversel, EINA_TRUE);
+ elm_hoversel_auto_update_set(hoversel, EINA_TRUE);
elm_hoversel_hover_parent_set(hoversel, win);
elm_object_text_set(hoversel, "Some Icons");
elm_hoversel_item_add(hoversel, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL);
if (item->func) item->func((void *)WIDGET_ITEM_DATA_GET(eo_it), obj2, eo_it);
eo_do(obj2, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
- if (sd->auto_changed)
+ if (sd->auto_update)
{
Evas_Object *ic;
}
EOLIAN void
-_elm_hoversel_label_auto_changed_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_changed)
+_elm_hoversel_auto_update_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_update)
{
- sd->auto_changed = !!auto_changed;
+ sd->auto_update = !!auto_update;
}
EOLIAN Eina_Bool
-_elm_hoversel_label_auto_changed_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
+_elm_hoversel_auto_update_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
{
- return sd->auto_changed;
+ return sd->auto_update;
}
#include "elm_hoversel_item.eo.c"
scrollable: bool; [[$true if scrollable $false otherwise.]]
}
}
- @property label_auto_changed {
+ @property auto_update {
[[Change the label of hoversel to that of selected item automatically.]]
get{
}
set{
}
values {
- auto_changed: bool; [[$true if the label is changed automatically or $false otherwise]]
+ auto_update: bool; [[$true if the label is changed automatically or $false otherwise]]
}
}
hover_begin {
Eina_Bool horizontal : 1;
Eina_Bool expanded : 1;
Eina_Bool scroll_enabled: 1;
- Eina_Bool auto_changed : 1;
+ Eina_Bool auto_update : 1;
};
typedef struct _Elm_Hoversel_Item_Data Elm_Hoversel_Item_Data;