seoz pushed a commit to branch master.

commit deec6cde3c5d42e5b772576f8e0457456df22674
Author: Daniel Juyung Seo <[email protected]>
Date:   Sat May 25 12:54:20 2013 +0900

    test_icon_desktops.c: print out more useful information.
---
 src/bin/test_icon_desktops.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/bin/test_icon_desktops.c b/src/bin/test_icon_desktops.c
index 0ce4bd2..39d6d8f 100644
--- a/src/bin/test_icon_desktops.c
+++ b/src/bin/test_icon_desktops.c
@@ -50,9 +50,14 @@ desk_gl_del(void *data, Evas_Object *obj __UNUSED__)
 
 #ifdef ELM_EFREET
 static void
-desktop_sel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void 
*event_info __UNUSED__)
+desktop_sel(void *data, Evas_Object *obj __UNUSED__, void *event_info 
__UNUSED__)
 {
-   printf("sel\n");
+   Efreet_Desktop *d = data;
+   if (!d) return;
+   printf("Selected Desktop Icon:\n");
+   printf("\tname : %s\n", d->name);
+   printf("\ticon : %s\n", d->icon);
+   printf("\tgeneric_name : %s\n", d->generic_name);
 }
 #endif
 
@@ -90,7 +95,7 @@ test_icon_desktops(void *data __UNUSED__, Evas_Object *obj 
__UNUSED__, void *eve
            EINA_LIST_FREE(desktops, d)
              elm_genlist_item_append(gl, it_desk, d,
                                     NULL, ELM_GENLIST_ITEM_NONE,
-                                    desktop_sel, NULL);
+                                    desktop_sel, d);
          }
      }
 #endif

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to