seoz pushed a commit to branch master.

commit 8fc12d1c68ca3b2437e283d2fe439dff4eb4f019
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed Mar 27 21:03:06 2013 +0900

    test_flipselector.c: simplified the sample code.
---
 src/bin/test_flipselector.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/test_flipselector.c b/src/bin/test_flipselector.c
index 676e4df..13ac8b7 100644
--- a/src/bin/test_flipselector.c
+++ b/src/bin/test_flipselector.c
@@ -83,7 +83,7 @@ test_flipselector(void *data __UNUSED__, Evas_Object *obj 
__UNUSED__, void *even
    char buf[8];
    unsigned int i;
    Evas_Object *win, *bx, *fp, *bt, *bx2, *sl;
-   Elm_Object_Item *it, *edje_it = NULL;
+   Elm_Object_Item *it;
    static const char *lbl[] = {
         "Elementary",
         "Evas",
@@ -111,9 +111,9 @@ test_flipselector(void *data __UNUSED__, Evas_Object *obj 
__UNUSED__, void *even
    for (i = 0; i < sizeof(lbl)/sizeof(char *); i++)
      {
         it = elm_flipselector_item_append(fp, lbl[i], NULL, NULL);
-        if (i == 3) edje_it = it;
+        if (i == 3)
+          elm_flipselector_item_selected_set(it, EINA_TRUE);
      }
-   elm_flipselector_item_selected_set(edje_it, EINA_TRUE);
    elm_box_pack_end(bx, fp);
    evas_object_show(fp);
 

-- 

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d

Reply via email to