summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_slideshow_eo.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-02-15 13:48:59 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-03-08 14:31:08 -0800
commitbc12d9feb5e2904bc9d8e294d922e5de1a95757f (patch)
treebaec76e11965779e96f8688c51f3398d9a0f1864 /src/lib/elementary/elm_slideshow_eo.c
parent6bb197caa9181f6c2639ecd25649a8237c158dd4 (diff)
eo: make reflection getter const function.
Getter are usually not modifying there object. This is going to put a strong limit on what a getter property for MVVM is, as it will prevent any side effect on getting a property from a View. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7969
Diffstat (limited to 'src/lib/elementary/elm_slideshow_eo.c')
-rw-r--r--src/lib/elementary/elm_slideshow_eo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_slideshow_eo.c b/src/lib/elementary/elm_slideshow_eo.c
index 145b94babf..8860bf95e6 100644
--- a/src/lib/elementary/elm_slideshow_eo.c
+++ b/src/lib/elementary/elm_slideshow_eo.c
@@ -27,7 +27,7 @@ int _elm_slideshow_cache_after_get(const Eo *obj, Elm_Slideshow_Data *pd);
27 27
28 28
29static Eina_Value 29static Eina_Value
30__eolian_elm_slideshow_cache_after_get_reflect(Eo *obj) 30__eolian_elm_slideshow_cache_after_get_reflect(const Eo *obj)
31{ 31{
32 int val = elm_obj_slideshow_cache_after_get(obj); 32 int val = elm_obj_slideshow_cache_after_get(obj);
33 return eina_value_int_init(val); 33 return eina_value_int_init(val);
@@ -59,7 +59,7 @@ int _elm_slideshow_cache_before_get(const Eo *obj, Elm_Slideshow_Data *pd);
59 59
60 60
61static Eina_Value 61static Eina_Value
62__eolian_elm_slideshow_cache_before_get_reflect(Eo *obj) 62__eolian_elm_slideshow_cache_before_get_reflect(const Eo *obj)
63{ 63{
64 int val = elm_obj_slideshow_cache_before_get(obj); 64 int val = elm_obj_slideshow_cache_before_get(obj);
65 return eina_value_int_init(val); 65 return eina_value_int_init(val);
@@ -91,7 +91,7 @@ const char *_elm_slideshow_layout_get(const Eo *obj, Elm_Slideshow_Data *pd);
91 91
92 92
93static Eina_Value 93static Eina_Value
94__eolian_elm_slideshow_layout_get_reflect(Eo *obj) 94__eolian_elm_slideshow_layout_get_reflect(const Eo *obj)
95{ 95{
96 const char *val = elm_obj_slideshow_layout_get(obj); 96 const char *val = elm_obj_slideshow_layout_get(obj);
97 return eina_value_string_init(val); 97 return eina_value_string_init(val);
@@ -123,7 +123,7 @@ const char *_elm_slideshow_transition_get(const Eo *obj, Elm_Slideshow_Data *pd)
123 123
124 124
125static Eina_Value 125static Eina_Value
126__eolian_elm_slideshow_transition_get_reflect(Eo *obj) 126__eolian_elm_slideshow_transition_get_reflect(const Eo *obj)
127{ 127{
128 const char *val = elm_obj_slideshow_transition_get(obj); 128 const char *val = elm_obj_slideshow_transition_get(obj);
129 return eina_value_string_init(val); 129 return eina_value_string_init(val);
@@ -155,7 +155,7 @@ Eina_Bool _elm_slideshow_items_loop_get(const Eo *obj, Elm_Slideshow_Data *pd);
155 155
156 156
157static Eina_Value 157static Eina_Value
158__eolian_elm_slideshow_items_loop_get_reflect(Eo *obj) 158__eolian_elm_slideshow_items_loop_get_reflect(const Eo *obj)
159{ 159{
160 Eina_Bool val = elm_obj_slideshow_items_loop_get(obj); 160 Eina_Bool val = elm_obj_slideshow_items_loop_get(obj);
161 return eina_value_bool_init(val); 161 return eina_value_bool_init(val);
@@ -187,7 +187,7 @@ double _elm_slideshow_timeout_get(const Eo *obj, Elm_Slideshow_Data *pd);
187 187
188 188
189static Eina_Value 189static Eina_Value
190__eolian_elm_slideshow_timeout_get_reflect(Eo *obj) 190__eolian_elm_slideshow_timeout_get_reflect(const Eo *obj)
191{ 191{
192 double val = elm_obj_slideshow_timeout_get(obj); 192 double val = elm_obj_slideshow_timeout_get(obj);
193 return eina_value_double_init(val); 193 return eina_value_double_init(val);