ryuan pushed a commit to branch master.

commit 9c6d78d996afd547059b834b9712f898a3a4cb27
Author: Ryuan Choi <[email protected]>
Date:   Wed Sep 11 17:07:10 2013 +0900

    Fixed wrong indentation and missing break in 74f308df9
---
 src/lib/elc_fileselector.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 742ac30..f219333 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -837,10 +837,13 @@ _on_text_activated(void *data,
              Elm_Object_Item *item = 
elm_genlist_first_item_get(sd->files_list);
              while (item)
                {
-                   const char *item_path = elm_object_item_data_get(item);
-                   if (!strcmp(item_path, path))
-                     elm_genlist_item_selected_set(item, EINA_TRUE);
-                   item = elm_genlist_item_next_get(item);
+                  const char *item_path = elm_object_item_data_get(item);
+                  if (!strcmp(item_path, path))
+                    {
+                       elm_genlist_item_selected_set(item, EINA_TRUE);
+                       break;
+                    }
+                  item = elm_genlist_item_next_get(item);
                }
           }
         else
@@ -848,13 +851,13 @@ _on_text_activated(void *data,
              Elm_Object_Item *item = 
elm_gengrid_first_item_get(sd->files_list);
              while (item)
                {
-                   const char *item_path = elm_object_item_data_get(item);
-                   if (!strcmp(item_path, path))
-                     {
+                  const char *item_path = elm_object_item_data_get(item);
+                  if (!strcmp(item_path, path))
+                    {
                        elm_gengrid_item_selected_set(item, EINA_TRUE);
                        break;
-                     }
-                   item = elm_gengrid_item_next_get(item);
+                    }
+                  item = elm_gengrid_item_next_get(item);
                }
           }
      }

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk

Reply via email to