summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-01-30 10:29:51 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-01-30 10:29:51 +0000
commitff7b7a0399d64d4d69567669f8936e050482198e (patch)
tree97521e7ff6034a8dff439f9db78d1958de1f8643 /src/examples/gengrid_example.c
parentf343011d7d07a4d38d741024565b1c7518327f1f (diff)
elementary/gengrid - Elm_Gengrid_Item -> Elm_Object_Item
Be happy! now all widgets are using the Elm_Object_Item interface. SVN revision: 67599
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index 43f57e190..4e911ef7c 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -106,10 +106,10 @@ _multi_change(void *data,
106 106
107 if (!multi) 107 if (!multi)
108 { 108 {
109 Elm_Gengrid_Item *it; 109 Elm_Object_Item *gg_it;
110 const Eina_List *selected = elm_gengrid_selected_items_get(grid), *l; 110 const Eina_List *selected = elm_gengrid_selected_items_get(grid), *l;
111 EINA_LIST_FOREACH(selected, l, it) 111 EINA_LIST_FOREACH(selected, l, gg_it)
112 elm_gengrid_item_selected_set(it, EINA_FALSE); 112 elm_gengrid_item_selected_set(gg_it, EINA_FALSE);
113 } 113 }
114} 114}
115 115
@@ -163,7 +163,7 @@ _before_bt_clicked(void *data,
163{ 163{
164 Example_Item *it; 164 Example_Item *it;
165 Evas_Object *grid = data; 165 Evas_Object *grid = data;
166 Elm_Gengrid_Item *sel; 166 Elm_Object_Item *sel;
167 167
168 sel = elm_gengrid_selected_item_get(grid); 168 sel = elm_gengrid_selected_item_get(grid);
169 if (!sel) 169 if (!sel)
@@ -181,7 +181,7 @@ _after_bt_clicked(void *data,
181{ 181{
182 Example_Item *it; 182 Example_Item *it;
183 Evas_Object *grid = data; 183 Evas_Object *grid = data;
184 Elm_Gengrid_Item *sel; 184 Elm_Object_Item *sel;
185 185
186 sel = elm_gengrid_selected_item_get(grid); 186 sel = elm_gengrid_selected_item_get(grid);
187 if (!sel) 187 if (!sel)
@@ -233,11 +233,11 @@ _bring_1st_clicked(void *data,
233 Evas_Object *obj __UNUSED__, 233 Evas_Object *obj __UNUSED__,
234 void *event_info __UNUSED__) 234 void *event_info __UNUSED__)
235{ 235{
236 Elm_Gengrid_Item *it = elm_gengrid_first_item_get(data); 236 Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data);
237 237
238 if (!it) return; 238 if (!gg_it) return;
239 239
240 elm_gengrid_item_bring_in(it); 240 elm_gengrid_item_bring_in(gg_it);
241} 241}
242 242
243/* show last item */ 243/* show last item */
@@ -246,11 +246,11 @@ _show_last_clicked(void *data,
246 Evas_Object *obj __UNUSED__, 246 Evas_Object *obj __UNUSED__,
247 void *event_info __UNUSED__) 247 void *event_info __UNUSED__)
248{ 248{
249 Elm_Gengrid_Item *it = elm_gengrid_last_item_get(data); 249 Elm_Object_Item *gg_it = elm_gengrid_last_item_get(data);
250 250
251 if (!it) return; 251 if (!gg_it) return;
252 252
253 elm_gengrid_item_show(it); 253 elm_gengrid_item_show(gg_it);
254} 254}
255 255
256/* disable selected item */ 256/* disable selected item */
@@ -259,12 +259,12 @@ _toggle_disabled_cb(void *data,
259 Evas_Object *obj __UNUSED__, 259 Evas_Object *obj __UNUSED__,
260 void *event_info __UNUSED__) 260 void *event_info __UNUSED__)
261{ 261{
262 Elm_Gengrid_Item *it = elm_gengrid_selected_item_get(data); 262 Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(data);
263 263
264 if (!it) return; 264 if (!gg_it) return;
265 265
266 elm_gengrid_item_selected_set(it, EINA_FALSE); 266 elm_gengrid_item_selected_set(gg_it, EINA_FALSE);
267 elm_gengrid_item_disabled_set(it, EINA_TRUE); 267 elm_gengrid_item_disabled_set(gg_it, EINA_TRUE);
268} 268}
269 269
270/* change items' size */ 270/* change items' size */