summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_gengrid.c
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-03-07 15:22:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-07 15:22:12 +0000
commitabe3dd222a5fb51d17d369f57eff5d1abd4ab39a (patch)
tree56901d69761988d330cc38497df5612583d67b51 /legacy/elementary/src/edje_externals/elm_gengrid.c
parent04cca27789d0385d4e918b87aa67efb6b30d64cb (diff)
From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_list - add select_mode_set and some remove deprecated apis in examples Like other widget (genlist, gengrid...), I add select_mode to elm_list. +elm_list_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode_Type mode) +EAPI Elm_Object_Select_Mode_Type +elm_list_select_mode_get(const Evas_Object *obj) And I removed deprecated apis (no_select, always_select) in examples and edje_externals. SVN revision: 68971
Diffstat (limited to 'legacy/elementary/src/edje_externals/elm_gengrid.c')
-rw-r--r--legacy/elementary/src/edje_externals/elm_gengrid.c36
1 files changed, 30 insertions, 6 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_gengrid.c b/legacy/elementary/src/edje_externals/elm_gengrid.c
index 56a2221..263e609 100644
--- a/legacy/elementary/src/edje_externals/elm_gengrid.c
+++ b/legacy/elementary/src/edje_externals/elm_gengrid.c
@@ -43,9 +43,19 @@ external_gengrid_state_set(void *data __UNUSED__, Evas_Object *obj, const void *
43 if (p->multi_exists) 43 if (p->multi_exists)
44 elm_gengrid_multi_select_set(obj, p->multi); 44 elm_gengrid_multi_select_set(obj, p->multi);
45 if (p->no_select_exists) 45 if (p->no_select_exists)
46 elm_gengrid_no_select_mode_set (obj, p->no_select); 46 {
47 if (p->no_select)
48 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NO_SELECT);
49 else
50 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NORMAL_SELECT);
51 }
47 if (p->always_select_exists) 52 if (p->always_select_exists)
48 elm_gengrid_always_select_mode_set (obj, p->always_select); 53 {
54 if (p->always_select)
55 elm_gengrid_select_mode_set (obj, ELM_OBJECT_ALWAYS_SELECT);
56 else
57 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NORMAL_SELECT);
58 }
49 if (p->h_bounce_exists) 59 if (p->h_bounce_exists)
50 { 60 {
51 Eina_Bool h_bounce, v_bounce; 61 Eina_Bool h_bounce, v_bounce;
@@ -112,7 +122,10 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
112 { 122 {
113 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 123 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
114 { 124 {
115 elm_gengrid_no_select_mode_set(obj, param->i); 125 if (param->i)
126 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NO_SELECT);
127 else
128 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NORMAL_SELECT);
116 return EINA_TRUE; 129 return EINA_TRUE;
117 } 130 }
118 } 131 }
@@ -120,7 +133,10 @@ external_gengrid_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E
120 { 133 {
121 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 134 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
122 { 135 {
123 elm_gengrid_always_select_mode_set(obj, param->i); 136 if (param->i)
137 elm_gengrid_select_mode_set (obj, ELM_OBJECT_ALWAYS_SELECT);
138 else
139 elm_gengrid_select_mode_set (obj, ELM_OBJECT_NORMAL_SELECT);
124 return EINA_TRUE; 140 return EINA_TRUE;
125 } 141 }
126 } 142 }
@@ -229,7 +245,11 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
229 { 245 {
230 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 246 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
231 { 247 {
232 param->i = elm_gengrid_no_select_mode_get(obj); 248 if (elm_gengrid_select_mode_get (obj) ==
249 ELM_OBJECT_NO_SELECT)
250 param->i = EINA_TRUE;
251 else
252 param->i = EINA_FALSE;
233 return EINA_TRUE; 253 return EINA_TRUE;
234 } 254 }
235 } 255 }
@@ -237,7 +257,11 @@ external_gengrid_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E
237 { 257 {
238 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 258 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
239 { 259 {
240 param->i = elm_gengrid_always_select_mode_get(obj); 260 if (elm_gengrid_select_mode_get (obj) ==
261 ELM_OBJECT_ALWAYS_SELECT)
262 param->i = EINA_TRUE;
263 else
264 param->i = EINA_FALSE;
241 return EINA_TRUE; 265 return EINA_TRUE;
242 } 266 }
243 } 267 }