summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-04-04 16:45:09 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-04-08 19:29:19 +0900
commit8b0a5b2f6d5ad19fcaba65a3fc28f58e4d06e071 (patch)
treef8a2251764a01c043e7336411ea4fa40edce06a7 /src/examples/gengrid_example.c
parent825d6803a950f0af04fc90ccc58d9e289bd12f68 (diff)
src/examples: fixed formatting.
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index 3d8b39ae3..02d3d92a3 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -106,7 +106,7 @@ _multi_change(void *data,
106 Elm_Object_Item *gg_it; 106 Elm_Object_Item *gg_it;
107 const Eina_List *selected = elm_gengrid_selected_items_get(grid), *l; 107 const Eina_List *selected = elm_gengrid_selected_items_get(grid), *l;
108 EINA_LIST_FOREACH(selected, l, gg_it) 108 EINA_LIST_FOREACH(selected, l, gg_it)
109 elm_gengrid_item_selected_set(gg_it, EINA_FALSE); 109 elm_gengrid_item_selected_set(gg_it, EINA_FALSE);
110 } 110 }
111} 111}
112 112
@@ -140,7 +140,7 @@ _grid_sel(void *data,
140 elm_gengrid_item_pos_get(event_info, &x, &y); 140 elm_gengrid_item_pos_get(event_info, &x, &y);
141 141
142 fprintf(stdout, "Item [%p], with data [%p], path %s, at position (%d, %d)," 142 fprintf(stdout, "Item [%p], with data [%p], path %s, at position (%d, %d),"
143 " has been selected\n", event_info, data, it->path, x, y); 143 " has been selected\n", event_info, data, it->path, x, y);
144} 144}
145 145
146/* new item with random path */ 146/* new item with random path */
@@ -314,8 +314,8 @@ _grid_label_get(void *data,
314/* icon fetching callback */ 314/* icon fetching callback */
315static Evas_Object * 315static Evas_Object *
316_grid_content_get(void *data, 316_grid_content_get(void *data,
317 Evas_Object *obj, 317 Evas_Object *obj,
318 const char *part) 318 const char *part)
319{ 319{
320 const Example_Item *it = data; 320 const Example_Item *it = data;
321 321
@@ -371,10 +371,10 @@ _grid_scroll_stopped_cb(void *data,
371 Evas_Object *obj, 371 Evas_Object *obj,
372 void *event_info) 372 void *event_info)
373{ 373{
374 int h_pagenumber = 0, v_pagenumber = 0; 374 int h_pagenumber = 0, v_pagenumber = 0;
375 elm_gengrid_current_page_get(obj, &h_pagenumber, &v_pagenumber); 375 elm_gengrid_current_page_get(obj, &h_pagenumber, &v_pagenumber);
376 fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n", 376 fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n",
377 h_pagenumber, v_pagenumber); 377 h_pagenumber, v_pagenumber);
378} 378}
379 379
380/* items grid horizontal alignment change */ 380/* items grid horizontal alignment change */
@@ -424,7 +424,7 @@ elm_main(int argc,
424 char **argv) 424 char **argv)
425{ 425{
426 Evas_Object *win, *bg, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, 426 Evas_Object *win, *bg, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl,
427 *sp; 427 *sp;
428 Eina_Bool bounce; 428 Eina_Bool bounce;
429 double h, v; 429 double h, v;
430 430