summaryrefslogtreecommitdiff
path: root/src/edje_externals
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-07-04 21:43:05 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-07-04 21:43:05 +0000
commit8616049832769c486b23385be38012ad9307ea17 (patch)
treec1aa0d2ca457c61d59198080b48393448846f8e8 /src/edje_externals
parentcc0f142d7612ee47937bfc2f068691d3b006929f (diff)
[elm] Elm list is now a SCROLLABLE layout.
This means it inherits from the layout class and implements the scrollable interface. SVN revision: 73310
Diffstat (limited to 'src/edje_externals')
-rw-r--r--src/edje_externals/elm_list.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/edje_externals/elm_list.c b/src/edje_externals/elm_list.c
index 25b38aafc..025130065 100644
--- a/src/edje_externals/elm_list.c
+++ b/src/edje_externals/elm_list.c
@@ -66,20 +66,20 @@ external_list_state_set(void *data __UNUSED__, Evas_Object *obj, const void *fro
66 { 66 {
67 policy_h = _scroller_policy_choices_setting_get(p->policy_h); 67 policy_h = _scroller_policy_choices_setting_get(p->policy_h);
68 policy_v = _scroller_policy_choices_setting_get(p->policy_v); 68 policy_v = _scroller_policy_choices_setting_get(p->policy_v);
69 elm_list_scroller_policy_set(obj, policy_h, policy_v); 69 elm_scroller_policy_set(obj, policy_h, policy_v);
70 } 70 }
71 else if ((p->policy_h) || (p->policy_v)) 71 else if ((p->policy_h) || (p->policy_v))
72 { 72 {
73 elm_list_scroller_policy_get(obj, &policy_h, &policy_v); 73 elm_scroller_policy_get(obj, &policy_h, &policy_v);
74 if (p->policy_h) 74 if (p->policy_h)
75 { 75 {
76 policy_h = _scroller_policy_choices_setting_get(p->policy_h); 76 policy_h = _scroller_policy_choices_setting_get(p->policy_h);
77 elm_list_scroller_policy_set(obj, policy_h, policy_v); 77 elm_scroller_policy_set(obj, policy_h, policy_v);
78 } 78 }
79 else 79 else
80 { 80 {
81 policy_v = _scroller_policy_choices_setting_get(p->policy_v); 81 policy_v = _scroller_policy_choices_setting_get(p->policy_v);
82 elm_list_scroller_policy_set(obj, policy_h, policy_v); 82 elm_scroller_policy_set(obj, policy_h, policy_v);
83 } 83 }
84 } 84 }
85 85
@@ -114,10 +114,10 @@ external_list_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Exte
114 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE) 114 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE)
115 { 115 {
116 Elm_Scroller_Policy h, v; 116 Elm_Scroller_Policy h, v;
117 elm_list_scroller_policy_get(obj, &h, &v); 117 elm_scroller_policy_get(obj, &h, &v);
118 h = _scroller_policy_choices_setting_get(param->s); 118 h = _scroller_policy_choices_setting_get(param->s);
119 if (h == ELM_SCROLLER_POLICY_LAST) return EINA_FALSE; 119 if (h == ELM_SCROLLER_POLICY_LAST) return EINA_FALSE;
120 elm_list_scroller_policy_set(obj, h, v); 120 elm_scroller_policy_set(obj, h, v);
121 return EINA_TRUE; 121 return EINA_TRUE;
122 } 122 }
123 } 123 }
@@ -126,10 +126,10 @@ external_list_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Exte
126 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE) 126 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE)
127 { 127 {
128 Elm_Scroller_Policy h, v; 128 Elm_Scroller_Policy h, v;
129 elm_list_scroller_policy_get(obj, &h, &v); 129 elm_scroller_policy_get(obj, &h, &v);
130 v = _scroller_policy_choices_setting_get(param->s); 130 v = _scroller_policy_choices_setting_get(param->s);
131 if (v == ELM_SCROLLER_POLICY_LAST) return EINA_FALSE; 131 if (v == ELM_SCROLLER_POLICY_LAST) return EINA_FALSE;
132 elm_list_scroller_policy_set(obj, h, v); 132 elm_scroller_policy_set(obj, h, v);
133 return EINA_TRUE; 133 return EINA_TRUE;
134 } 134 }
135 } 135 }
@@ -203,7 +203,7 @@ external_list_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_Exte
203 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE) 203 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE)
204 { 204 {
205 Elm_Scroller_Policy h, v; 205 Elm_Scroller_Policy h, v;
206 elm_list_scroller_policy_get(obj, &h, &v); 206 elm_scroller_policy_get(obj, &h, &v);
207 207
208 param->s = scroller_policy_choices[h]; 208 param->s = scroller_policy_choices[h];
209 return EINA_TRUE; 209 return EINA_TRUE;
@@ -214,7 +214,7 @@ external_list_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_Exte
214 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE) 214 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE)
215 { 215 {
216 Elm_Scroller_Policy h, v; 216 Elm_Scroller_Policy h, v;
217 elm_list_scroller_policy_get(obj, &h, &v); 217 elm_scroller_policy_get(obj, &h, &v);
218 218
219 param->s = scroller_policy_choices[v]; 219 param->s = scroller_policy_choices[v];
220 return EINA_TRUE; 220 return EINA_TRUE;