index: rename elm_index_priority_set to elm_index_standard_priority_set

this change is also for consistency with elm_toolbar_standard_priority_set
conceptually the priority meaning here is same.
This commit is contained in:
ChunEon Park 2015-09-08 14:50:53 +09:00
parent 2198490c61
commit 204fb1ae00
3 changed files with 8 additions and 8 deletions

View File

@ -443,14 +443,14 @@ _index_priority_change_cb(void *data, Evas_Object *obj EINA_UNUSED,
Evas_Object *index = data;
int priority;
priority = elm_index_priority_get(index);
priority = elm_index_standard_priority_get(index);
if (priority == 0)
elm_index_priority_set(index, 1);
elm_index_standard_priority_set(index, 1);
else
elm_index_priority_set(index, 0);
elm_index_standard_priority_set(index, 0);
printf("Priority changed to : %d\n", elm_index_priority_get(index));
printf("Priority changed to : %d\n", elm_index_standard_priority_get(index));
}
void

View File

@ -1613,7 +1613,7 @@ _elm_index_item_priority_set(Eo *eo_it EINA_UNUSED, Elm_Index_Item_Data *it, int
}
EOLIAN static void
_elm_index_priority_set(Eo *obj, Elm_Index_Data *sd, int priority)
_elm_index_standard_priority_set(Eo *obj, Elm_Index_Data *sd, int priority)
{
if (priority < -1)
{
@ -1631,7 +1631,7 @@ _elm_index_priority_set(Eo *obj, Elm_Index_Data *sd, int priority)
}
EOLIAN static int
_elm_index_priority_get(Eo *obj EINA_UNUSED, Elm_Index_Data *sd)
_elm_index_standard_priority_get(Eo *obj EINA_UNUSED, Elm_Index_Data *sd)
{
return sd->show_group;
}

View File

@ -24,8 +24,8 @@ class Elm.Index (Elm.Layout, Evas.Clickable_Interface, Evas.Selectable_Interface
enabled: bool; [[$true to enable omit feature, $false to disable]]
}
}
@property priority {
[[Control priority group of index. Priority group will be shown as many items as it can, and other group will be shown one character only.
@property standard_priority {
[[Control standard_priority group of index. Priority group will be shown as many items as it can, and other group will be shown one character only.
@since 1.16]]
set {