summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-07-26 19:40:20 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-07-26 19:40:20 +0200
commit4ddc780745eb8488c8ef402b9d51a58b0ad40717 (patch)
tree3a9af32e8daf6d9ed748cd08ac147a7a44c183ad
parent81738f3ba4edf7d37c2ecf96036c5e9c2a212414 (diff)
use DBG macro
-rw-r--r--src/lib/items/elm_items_display.c6
-rw-r--r--src/lib/items/elm_items_list.c8
2 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/items/elm_items_display.c b/src/lib/items/elm_items_display.c
index 249c0f5..ee87490 100644
--- a/src/lib/items/elm_items_display.c
+++ b/src/lib/items/elm_items_display.c
@@ -443,10 +443,10 @@ _realitems_change_idle(void *data)
443 443
444 pd = eo_data_scope_get(data, ELM_ITEMS_DISPLAY_CLASS); 444 pd = eo_data_scope_get(data, ELM_ITEMS_DISPLAY_CLASS);
445 445
446 printf("REALITEMS UPDATE\n"); 446 DBG("REALITEMS UPDATE\n");
447 EINA_LIST_FOREACH(pd->realitems, node, it) 447 EINA_LIST_FOREACH(pd->realitems, node, it)
448 { 448 {
449 printf(" Item: %p\n", it); 449 DBG(" Item: %p\n", it);
450 } 450 }
451 451
452 eo_do(pd->pan, elm_items_pan_realitems(pd->realitems)); 452 eo_do(pd->pan, elm_items_pan_realitems(pd->realitems));
@@ -525,12 +525,10 @@ _add(void *data, Eo *obj, const Eo_Event_Description2 *desc EINA_UNUSED, void *e
525 eo_do(obj, item = efl_tree_base_carry_get()); 525 eo_do(obj, item = efl_tree_base_carry_get());
526 eo_do(item, expanded = elm_items_item_expandable_get()); 526 eo_do(item, expanded = elm_items_item_expandable_get());
527 527
528 printf("expanded %d\n", expanded);
529 if (!expanded) return EO_CALLBACK_CONTINUE; 528 if (!expanded) return EO_CALLBACK_CONTINUE;
530 } 529 }
531 530
532 _item_insert(data, pd, event, obj); 531 _item_insert(data, pd, event, obj);
533 printf("ADD\n");
534 _update(data); 532 _update(data);
535 return EO_CALLBACK_CONTINUE; 533 return EO_CALLBACK_CONTINUE;
536} 534}
diff --git a/src/lib/items/elm_items_list.c b/src/lib/items/elm_items_list.c
index 36c42cc..1aed339 100644
--- a/src/lib/items/elm_items_list.c
+++ b/src/lib/items/elm_items_list.c
@@ -17,10 +17,6 @@ typedef struct {
17 Eina_List *realitems; 17 Eina_List *realitems;
18} Elm_Items_List_Pan_Data; 18} Elm_Items_List_Pan_Data;
19 19
20#if 0
21#define PRINT_DEBUG
22#endif
23
24#define HACKY_HEIGHT 30 20#define HACKY_HEIGHT 30
25//================================== 21//==================================
26// Pan implement 22// Pan implement
@@ -54,9 +50,7 @@ _elm_items_list_pan_elm_items_pan_viewport_changed(Eo *obj, Elm_Items_List_Pan_D
54 if (last_item > eina_list_count(pd->realitems)) 50 if (last_item > eina_list_count(pd->realitems))
55 last_item = eina_list_count(pd->realitems); 51 last_item = eina_list_count(pd->realitems);
56 52
57 #ifdef PRINT_DEBUG 53 DBG("Size : (%d-%d-%d-%d) Pos :(%d-%d) Items:(%d-%d)\n", viewport.pos.x, viewport.pos.y, viewport.w, viewport.h, position.x, position.y, first_item, last_item);
58 printf("Size : (%d-%d-%d-%d) Pos :(%d-%d) Items:(%d-%d)\n", viewport.pos.x, viewport.pos.y, viewport.w, viewport.h, position.x, position.y, first_item, last_item);
59 #endif
60 54
61 //remove all children from the box if we have new items 55 //remove all children from the box if we have new items
62 if (pd->old_last != last_item || pd->old_first != first_item) 56 if (pd->old_last != last_item || pd->old_first != first_item)