From 5fd9a468698c0e49b9758b130c597a8fa42593e7 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 24 Aug 2009 17:20:33 +0000 Subject: [PATCH] small cleanup SVN revision: 41958 --- legacy/edje/src/lib/edje_entry.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c index 7b0ee3d544..4d6edb66a0 100644 --- a/legacy/edje/src/lib/edje_entry.c +++ b/legacy/edje/src/lib/edje_entry.c @@ -86,14 +86,13 @@ struct _Anchor static void _edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) { - Edje_Real_Part *rp = data; - if (!rp) return; - Entry *en = rp->entry_data; + Edje_Real_Part *rp; + Entry *en; - if (!en) return; + rp = data; + if (!rp || !rp->entry_data || !rp->edje || !rp->edje->obj) return; - if (!rp->edje || !rp->edje->obj) return; - + en = rp->entry_data; if (!en->imf_context) return; if (evas_object_focus_get(rp->edje->obj)) @@ -106,11 +105,13 @@ _edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emiss static void _edje_entry_focus_out_cb(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) { - Edje_Real_Part *rp = data; - if (!rp) return; - Entry *en = rp->entry_data; - if (!en) return; + Edje_Real_Part *rp; + Entry *en; + rp = data; + if (!rp || !rp->entry_data) return; + + en = rp->entry_data; if (!en->imf_context) return; ecore_imf_context_reset(en->imf_context);