seoz pushed a commit to branch master.

commit c4768450af65e009950c216e9a044caf9acd3f64
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Aug 4 17:38:02 2013 +0900

    elm_win.c: refactoring. cleaner code.
---
 src/lib/elm_win.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 5420dbf..154d158 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -664,21 +664,17 @@ static void
 _elm_win_focus_highlight_visible_set(Elm_Win_Smart_Data *sd,
                                      Eina_Bool visible)
 {
-   Evas_Object *fobj;
+   Evas_Object *fobj = sd->focus_highlight.fobj;
+   if (!fobj) return;
 
-   fobj = sd->focus_highlight.fobj;
    if (visible)
      {
-        if (fobj)
-          {
-             evas_object_show(fobj);
-             edje_object_signal_emit(fobj, "elm,action,focus,show", "elm");
-          }
+        evas_object_show(fobj);
+        edje_object_signal_emit(fobj, "elm,action,focus,show", "elm");
      }
    else
      {
-        if (fobj)
-          edje_object_signal_emit(fobj, "elm,action,focus,hide", "elm");
+        edje_object_signal_emit(fobj, "elm,action,focus,hide", "elm");
      }
 }
 

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to