summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_gengrid.c
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-07-10 21:40:38 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-07-10 21:40:38 +0000
commit363cdf94c36d1fbeccb95310486fe32835dba79e (patch)
tree1a6dd936a48b1309783fd73ca0ca53e57588eb02 /legacy/elementary/src/edje_externals/elm_gengrid.c
parentce361dca42721e724e2abd441810588b73102e46 (diff)
[elm] Gengrid now a scrollable layout.
SVN revision: 73541
Diffstat (limited to 'legacy/elementary/src/edje_externals/elm_gengrid.c')
-rw-r--r--legacy/elementary/src/edje_externals/elm_gengrid.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_gengrid.c b/legacy/elementary/src/edje_externals/elm_gengrid.c
index 9319d5e..b84175f 100644
--- a/legacy/elementary/src/edje_externals/elm_gengrid.c
+++ b/legacy/elementary/src/edje_externals/elm_gengrid.c
@@ -59,26 +59,26 @@ external_gengrid_state_set(void *data __UNUSED__, Evas_Object *obj, const void *
59 if (p->h_bounce_exists) 59 if (p->h_bounce_exists)
60 { 60 {
61 Eina_Bool h_bounce, v_bounce; 61 Eina_Bool h_bounce, v_bounce;
62 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 62 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
63 elm_gengrid_bounce_set(obj, p->h_bounce, v_bounce); 63 elm_scroller_bounce_set(obj, p->h_bounce, v_bounce);
64 } 64 }
65 if (p->v_bounce_exists) 65 if (p->v_bounce_exists)
66 { 66 {
67 Eina_Bool h_bounce, v_bounce; 67 Eina_Bool h_bounce, v_bounce;
68 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 68 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
69 elm_gengrid_bounce_set(obj, h_bounce, p->v_bounce); 69 elm_scroller_bounce_set(obj, h_bounce, p->v_bounce);
70 } 70 }
71 if (p->h_pagerel_exists) 71 if (p->h_pagerel_exists)
72 { 72 {
73 double h_pagerel, v_pagerel; 73 double h_pagerel, v_pagerel;
74 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 74 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
75 elm_gengrid_page_relative_set(obj, h_pagerel, p->v_pagerel); 75 elm_scroller_page_relative_set(obj, h_pagerel, p->v_pagerel);
76 } 76 }
77 if (p->v_pagerel_exists) 77 if (p->v_pagerel_exists)
78 { 78 {
79 double h_pagerel, v_pagerel; 79 double h_pagerel, v_pagerel;
80 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 80 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
81 elm_gengrid_page_relative_set(obj, p->h_pagerel, v_pagerel); 81 elm_scroller_page_relative_set(obj, p->h_pagerel, v_pagerel);
82 } 82 }
83 if (p->h_itemsize_exists) 83 if (p->h_itemsize_exists)
84 { 84 {
@@ -145,8 +145,8 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
145 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 145 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
146 { 146 {
147 Eina_Bool h_bounce, v_bounce; 147 Eina_Bool h_bounce, v_bounce;
148 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 148 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
149 elm_gengrid_bounce_set(obj, param->i, v_bounce); 149 elm_scroller_bounce_set(obj, param->i, v_bounce);
150 return EINA_TRUE; 150 return EINA_TRUE;
151 } 151 }
152 } 152 }
@@ -155,8 +155,8 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
155 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 155 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
156 { 156 {
157 Eina_Bool h_bounce, v_bounce; 157 Eina_Bool h_bounce, v_bounce;
158 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 158 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
159 elm_gengrid_bounce_set(obj, h_bounce, param->i); 159 elm_scroller_bounce_set(obj, h_bounce, param->i);
160 return EINA_TRUE; 160 return EINA_TRUE;
161 } 161 }
162 } 162 }
@@ -165,8 +165,8 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
165 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 165 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
166 { 166 {
167 double h_pagerel, v_pagerel; 167 double h_pagerel, v_pagerel;
168 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 168 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
169 elm_gengrid_page_relative_set(obj, param->d, v_pagerel); 169 elm_scroller_page_relative_set(obj, param->d, v_pagerel);
170 return EINA_TRUE; 170 return EINA_TRUE;
171 } 171 }
172 } 172 }
@@ -175,8 +175,8 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
175 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 175 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
176 { 176 {
177 double h_pagerel, v_pagerel; 177 double h_pagerel, v_pagerel;
178 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 178 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
179 elm_gengrid_page_relative_set(obj, h_pagerel, param->d); 179 elm_scroller_page_relative_set(obj, h_pagerel, param->d);
180 return EINA_TRUE; 180 return EINA_TRUE;
181 } 181 }
182 } 182 }
@@ -270,7 +270,7 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
270 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 270 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
271 { 271 {
272 Eina_Bool h_bounce, v_bounce; 272 Eina_Bool h_bounce, v_bounce;
273 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 273 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
274 param->i = h_bounce; 274 param->i = h_bounce;
275 return EINA_TRUE; 275 return EINA_TRUE;
276 } 276 }
@@ -280,7 +280,7 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
280 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 280 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
281 { 281 {
282 Eina_Bool h_bounce, v_bounce; 282 Eina_Bool h_bounce, v_bounce;
283 elm_gengrid_bounce_get(obj, &h_bounce, &v_bounce); 283 elm_scroller_bounce_get(obj, &h_bounce, &v_bounce);
284 param->i = v_bounce; 284 param->i = v_bounce;
285 return EINA_TRUE; 285 return EINA_TRUE;
286 } 286 }
@@ -290,7 +290,7 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
290 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 290 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
291 { 291 {
292 double h_pagerel, v_pagerel; 292 double h_pagerel, v_pagerel;
293 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 293 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
294 param->d = h_pagerel; 294 param->d = h_pagerel;
295 return EINA_TRUE; 295 return EINA_TRUE;
296 } 296 }
@@ -300,7 +300,7 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
300 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 300 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
301 { 301 {
302 double h_pagerel, v_pagerel; 302 double h_pagerel, v_pagerel;
303 elm_gengrid_page_relative_get(obj, &h_pagerel, &v_pagerel); 303 elm_scroller_page_relative_get(obj, &h_pagerel, &v_pagerel);
304 param->d = v_pagerel; 304 param->d = v_pagerel;
305 return EINA_TRUE; 305 return EINA_TRUE;
306 } 306 }