aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-08-04 17:38:02 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-08-04 17:38:02 +0900
commita6d5d9909d9cabd3c76a9eed3f3d4c6ada4e74c5 (patch)
tree1326482372a00408886ebf38731a0c57ac274d4a /legacy/elementary/src/lib/elm_win.c
parentelm_win.c: more descriptive variable name. top -> fobj for focus edje object. (diff)
downloadefl-a6d5d9909d9cabd3c76a9eed3f3d4c6ada4e74c5.tar.gz
elm_win.c: refactoring. cleaner code.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 5420dbfca5..154d158c96 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/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");
}
}