forked from enlightenment/efl
hoversel: rename label_auto_changed -> auto_update
Thanks to Davide Andreoli for his review and suggestion.
This commit is contained in:
parent
12feff963e
commit
a3806857ca
|
@ -182,7 +182,7 @@ test_hoversel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
|
|||
|
||||
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);
|
||||
|
|
|
@ -120,7 +120,7 @@ _on_item_clicked(void *data EINA_UNUSED,
|
|||
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;
|
||||
|
||||
|
@ -982,15 +982,15 @@ _elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
|
|||
}
|
||||
|
||||
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"
|
||||
|
|
|
@ -57,14 +57,14 @@ class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface,
|
|||
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 {
|
||||
|
|
|
@ -42,7 +42,7 @@ struct _Elm_Hoversel_Data
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue