index: rename elm_index_priority_set to elm_index_standard_priority_set
authorChunEon Park <hermet@hermet.pe.kr>
Tue, 8 Sep 2015 05:50:53 +0000 (14:50 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Tue, 8 Sep 2015 05:50:53 +0000 (14:50 +0900)
this change is also for consistency with elm_toolbar_standard_priority_set
conceptually the priority meaning here is same.

src/bin/test_index.c
src/lib/elm_index.c
src/lib/elm_index.eo

index cd05954..085f849 100644 (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
index ac6dea2..ed736bd 100644 (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;
 }
index 1c08930..e51f779 100644 (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 {