summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-19 11:41:14 -0700
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commit305fa040f192cc5daf7cc27de23e207f1d8317e8 (patch)
treed8609e8b673a901bcfeade79b821286c4d046f8f
parent69c40904fc855cbd318677c30d4e69a67cd943a9 (diff)
hoversel: rename label_auto_changed -> auto_update
Thanks to Davide Andreoli for his review and suggestion.
-rw-r--r--src/bin/test_hoversel.c2
-rw-r--r--src/lib/elc_hoversel.c10
-rw-r--r--src/lib/elm_hoversel.eo4
-rw-r--r--src/lib/elm_widget_hoversel.h2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/test_hoversel.c b/src/bin/test_hoversel.c
index e65efd98d..2979e02a6 100644
--- a/src/bin/test_hoversel.c
+++ b/src/bin/test_hoversel.c
@@ -182,7 +182,7 @@ test_hoversel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
182 182
183 hoversel = elm_hoversel_add(win); 183 hoversel = elm_hoversel_add(win);
184 elm_hoversel_scrollable_set(hoversel, EINA_TRUE); 184 elm_hoversel_scrollable_set(hoversel, EINA_TRUE);
185 elm_hoversel_label_auto_changed_set(hoversel, EINA_TRUE); 185 elm_hoversel_auto_update_set(hoversel, EINA_TRUE);
186 elm_hoversel_hover_parent_set(hoversel, win); 186 elm_hoversel_hover_parent_set(hoversel, win);
187 elm_object_text_set(hoversel, "Some Icons"); 187 elm_object_text_set(hoversel, "Some Icons");
188 elm_hoversel_item_add(hoversel, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL); 188 elm_hoversel_item_add(hoversel, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL);
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index 2079e99c2..1969f400d 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -120,7 +120,7 @@ _on_item_clicked(void *data EINA_UNUSED,
120 if (item->func) item->func((void *)WIDGET_ITEM_DATA_GET(eo_it), obj2, eo_it); 120 if (item->func) item->func((void *)WIDGET_ITEM_DATA_GET(eo_it), obj2, eo_it);
121 eo_do(obj2, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it)); 121 eo_do(obj2, eo_event_callback_call(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, eo_it));
122 122
123 if (sd->auto_changed) 123 if (sd->auto_update)
124 { 124 {
125 Evas_Object *ic; 125 Evas_Object *ic;
126 126
@@ -982,15 +982,15 @@ _elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
982} 982}
983 983
984EOLIAN void 984EOLIAN void
985_elm_hoversel_label_auto_changed_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_changed) 985_elm_hoversel_auto_update_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool auto_update)
986{ 986{
987 sd->auto_changed = !!auto_changed; 987 sd->auto_update = !!auto_update;
988} 988}
989 989
990EOLIAN Eina_Bool 990EOLIAN Eina_Bool
991_elm_hoversel_label_auto_changed_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) 991_elm_hoversel_auto_update_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
992{ 992{
993 return sd->auto_changed; 993 return sd->auto_update;
994} 994}
995 995
996#include "elm_hoversel_item.eo.c" 996#include "elm_hoversel_item.eo.c"
diff --git a/src/lib/elm_hoversel.eo b/src/lib/elm_hoversel.eo
index ca24396b7..b537ed1c9 100644
--- a/src/lib/elm_hoversel.eo
+++ b/src/lib/elm_hoversel.eo
@@ -57,14 +57,14 @@ class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface,
57 scrollable: bool; [[$true if scrollable $false otherwise.]] 57 scrollable: bool; [[$true if scrollable $false otherwise.]]
58 } 58 }
59 } 59 }
60 @property label_auto_changed { 60 @property auto_update {
61 [[Change the label of hoversel to that of selected item automatically.]] 61 [[Change the label of hoversel to that of selected item automatically.]]
62 get{ 62 get{
63 } 63 }
64 set{ 64 set{
65 } 65 }
66 values { 66 values {
67 auto_changed: bool; [[$true if the label is changed automatically or $false otherwise]] 67 auto_update: bool; [[$true if the label is changed automatically or $false otherwise]]
68 } 68 }
69 } 69 }
70 hover_begin { 70 hover_begin {
diff --git a/src/lib/elm_widget_hoversel.h b/src/lib/elm_widget_hoversel.h
index 2b977281a..36aa5b27b 100644
--- a/src/lib/elm_widget_hoversel.h
+++ b/src/lib/elm_widget_hoversel.h
@@ -42,7 +42,7 @@ struct _Elm_Hoversel_Data
42 Eina_Bool horizontal : 1; 42 Eina_Bool horizontal : 1;
43 Eina_Bool expanded : 1; 43 Eina_Bool expanded : 1;
44 Eina_Bool scroll_enabled: 1; 44 Eina_Bool scroll_enabled: 1;
45 Eina_Bool auto_changed : 1; 45 Eina_Bool auto_update : 1;
46}; 46};
47 47
48typedef struct _Elm_Hoversel_Item_Data Elm_Hoversel_Item_Data; 48typedef struct _Elm_Hoversel_Item_Data Elm_Hoversel_Item_Data;