summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-10-08 12:03:37 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-10-24 04:05:23 +0200
commit73d4c84962fd79314c4374dddf4762af7c5df338 (patch)
tree7e5dd670691ba1f7b1d04f891c920aa0998d5093
parent4492153c6ad360a97ab990f340ebf5be55218789 (diff)
elm_hoversel: change Elm_Hoversel_Data member name from scroll_enabled to scrollable
Summary: elm_hoversel_scroll_enabled_set/get() API were changed to elm_hoversel_scrollable_set/get(). However, the name of member of Elm_Hovsersel_Data related to those API are not changed. It can confuse developers later, so change it same to the name defined in elm_hoversel.eo file. Reviewers: Hermet, cedric Differential Revision: https://phab.enlightenment.org/D3140 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elc_hoversel.c10
-rw-r--r--src/lib/elm_widget_hoversel.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index 1969f400d..d0f92ccbd 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -437,7 +437,7 @@ _activate(Evas_Object *obj)
437 eo_event_callback_add(ELM_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, item)); 437 eo_event_callback_add(ELM_WIDGET_EVENT_UNFOCUSED, _item_unfocused_cb, item));
438 } 438 }
439 439
440 if (sd->scroll_enabled) 440 if (sd->scrollable)
441 { 441 {
442 _create_scroller(obj, sd); 442 _create_scroller(obj, sd);
443 elm_object_content_set(sd->scr, bx); 443 elm_object_content_set(sd->scr, bx);
@@ -586,7 +586,7 @@ _on_move_resize(void * data,
586{ 586{
587 Elm_Hoversel_Data *sd = data; 587 Elm_Hoversel_Data *sd = data;
588 588
589 if (sd->scroll_enabled) 589 if (sd->scrollable)
590 _resizing_eval(obj, sd); 590 _resizing_eval(obj, sd);
591} 591}
592 592
@@ -970,15 +970,15 @@ _elm_hoversel_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNU
970} 970}
971 971
972EOLIAN void 972EOLIAN void
973_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scroll) 973_elm_hoversel_scrollable_set(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd, Eina_Bool scrollable)
974{ 974{
975 sd->scroll_enabled = !!scroll; 975 sd->scrollable = !!scrollable;
976} 976}
977 977
978EOLIAN Eina_Bool 978EOLIAN Eina_Bool
979_elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd) 979_elm_hoversel_scrollable_get(Eo *obj EINA_UNUSED, Elm_Hoversel_Data *sd)
980{ 980{
981 return sd->scroll_enabled; 981 return sd->scrollable;
982} 982}
983 983
984EOLIAN void 984EOLIAN void
diff --git a/src/lib/elm_widget_hoversel.h b/src/lib/elm_widget_hoversel.h
index 36aa5b27b..56e521ba5 100644
--- a/src/lib/elm_widget_hoversel.h
+++ b/src/lib/elm_widget_hoversel.h
@@ -41,7 +41,7 @@ struct _Elm_Hoversel_Data
41 41
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 scrollable : 1;
45 Eina_Bool auto_update : 1; 45 Eina_Bool auto_update : 1;
46}; 46};
47 47