summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-09-07 20:41:34 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-09-07 20:41:34 +0900
commitd73ff4601193218e92867052d533ee4b686ae8fb (patch)
treeb58b4c2bdf441ca1e81535ec284083e0178fd559
parent003571ef571eb12b1a2794ce8d5914f357285a56 (diff)
hoversel: rename api scroll_enabled_set to scrollable_set
modify api for consistency. scrollable_set is more closed to other similar apis.
-rw-r--r--src/bin/test_hoversel.c2
-rw-r--r--src/lib/elc_hoversel.c6
-rw-r--r--src/lib/elm_hoversel.eo9
3 files changed, 10 insertions, 7 deletions
diff --git a/src/bin/test_hoversel.c b/src/bin/test_hoversel.c
index 26977dda4..8fd234669 100644
--- a/src/bin/test_hoversel.c
+++ b/src/bin/test_hoversel.c
@@ -181,7 +181,7 @@ test_hoversel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
181 evas_object_show(hoversel); 181 evas_object_show(hoversel);
182 182
183 hoversel = elm_hoversel_add(win); 183 hoversel = elm_hoversel_add(win);
184 elm_hoversel_scroll_enabled_set(hoversel, EINA_TRUE); 184 elm_hoversel_scrollable_set(hoversel, EINA_TRUE);
185 elm_hoversel_hover_parent_set(hoversel, win); 185 elm_hoversel_hover_parent_set(hoversel, win);
186 elm_object_text_set(hoversel, "Some Icons"); 186 elm_object_text_set(hoversel, "Some Icons");
187 elm_hoversel_item_add(hoversel, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL); 187 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 a8bb528ae..c25fb6abe 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -777,13 +777,13 @@ _elm_hoversel_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNU
777} 777}
778 778
779EOLIAN void 779EOLIAN void
780_elm_hoversel_scroll_enabled_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll_enabled) 780_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll)
781{ 781{
782 sd->scroll_enabled = !!scroll_enabled; 782 sd->scroll_enabled = !!scroll;
783} 783}
784 784
785EOLIAN Eina_Bool 785EOLIAN Eina_Bool
786_elm_hoversel_scroll_enabled_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) 786_elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
787{ 787{
788 return sd->scroll_enabled; 788 return sd->scroll_enabled;
789} 789}
diff --git a/src/lib/elm_hoversel.eo b/src/lib/elm_hoversel.eo
index 36f4e763e..878b45401 100644
--- a/src/lib/elm_hoversel.eo
+++ b/src/lib/elm_hoversel.eo
@@ -42,16 +42,19 @@ class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface,
42 return: const(list<Elm.Widget_Item *>)*; 42 return: const(list<Elm.Widget_Item *>)*;
43 } 43 }
44 } 44 }
45 @property scroll_enabled { 45 @property scrollable {
46 [[Control wether scrolling is enabled. 46 [[Control wether scrolling is enabled.
47 47
48 This Limit the size of contents and make them scrollable.]] 48 This Limit the size of contents and make them scrollable.
49
50 @since 1.16
51 ]]
49 get { 52 get {
50 } 53 }
51 set { 54 set {
52 } 55 }
53 values { 56 values {
54 scroll_enabled: bool; [[$true if scrollable $false otherwise.]] 57 scrollable: bool; [[$true if scrollable $false otherwise.]]
55 } 58 }
56 } 59 }
57 hover_begin { 60 hover_begin {