hoversel: rename label_auto_changed -> auto_update
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 19 Oct 2015 18:41:14 +0000 (11:41 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 19 Oct 2015 18:55:30 +0000 (11:55 -0700)
Thanks to Davide Andreoli for his review and suggestion.

src/bin/test_hoversel.c
src/lib/elc_hoversel.c
src/lib/elm_hoversel.eo
src/lib/elm_widget_hoversel.h

index e65efd98dd6f280c8f4f4cdab17076a63536bc2a..2979e02a64c80366a1e664efda400778d18bab88 100644 (file)
@@ -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);
index 2079e99c2bb3a87fe3eea8dcb3eed17925c91f94..1969f400db315b59e5805f079e7b1c666a45c609 100644 (file)
@@ -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"
index ca24396b75b96e420af1140235cfc89c11361755..b537ed1c93d71e2be3edaee0e2b128e526a9a4f9 100644 (file)
@@ -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 {
index 2b977281a5440cacfcec344a3c505928650097a7..36aa5b27bbd342898c90405b21c9690349663ca1 100644 (file)
@@ -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;