summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_entry.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-12-20 05:07:23 +0000
committerJihoon Kim <imfine98@gmail.com>2012-12-20 05:07:23 +0000
commitaf7efb7ad0ee2f991696d8dcbeab8676a8823857 (patch)
tree2af4f2693b461eeec9efffc9030a70a662bb9297 /legacy/edje/src/lib/edje_entry.c
parent5db9286ed2ef61c8224399be747532ea2e58e335 (diff)
edje_entry: check NULL parameter
SVN revision: 81418
Diffstat (limited to '')
-rw-r--r--legacy/edje/src/lib/edje_entry.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c
index 38b74713fa..b95cd1fadc 100644
--- a/legacy/edje/src/lib/edje_entry.c
+++ b/legacy/edje/src/lib/edje_entry.c
@@ -1758,7 +1758,7 @@ _edje_part_mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUS
1758 Evas_Textblock_Cursor *tc = NULL; 1758 Evas_Textblock_Cursor *tc = NULL;
1759 Eina_Bool dosel = EINA_FALSE; 1759 Eina_Bool dosel = EINA_FALSE;
1760 Eina_Bool shift; 1760 Eina_Bool shift;
1761 if (!rp) return; 1761 if ((!rp) || (!ev)) return;
1762 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return; 1762 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
1763 if ((rp->type != EDJE_RP_TYPE_TEXT) || 1763 if ((rp->type != EDJE_RP_TYPE_TEXT) ||
1764 (!rp->typedata.text)) return; 1764 (!rp->typedata.text)) return;
@@ -1990,7 +1990,7 @@ _edje_part_mouse_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED
1990 Entry *en; 1990 Entry *en;
1991 Evas_Coord x, y, w, h; 1991 Evas_Coord x, y, w, h;
1992 Evas_Textblock_Cursor *tc; 1992 Evas_Textblock_Cursor *tc;
1993 if (ev->button != 1) return; 1993 if ((!ev) || (ev->button != 1)) return;
1994 if (!rp) return; 1994 if (!rp) return;
1995 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return; 1995 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
1996 if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK) return; 1996 if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK) return;
@@ -2101,7 +2101,7 @@ _edje_part_mouse_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUS
2101 Entry *en; 2101 Entry *en;
2102 Evas_Coord x, y, w, h; 2102 Evas_Coord x, y, w, h;
2103 Evas_Textblock_Cursor *tc; 2103 Evas_Textblock_Cursor *tc;
2104 if (!rp) return; 2104 if ((!rp) || (!ev)) return;
2105 if ((rp->type != EDJE_RP_TYPE_TEXT) || 2105 if ((rp->type != EDJE_RP_TYPE_TEXT) ||
2106 (!rp->typedata.text)) return; 2106 (!rp->typedata.text)) return;
2107 en = rp->typedata.text->entry_data; 2107 en = rp->typedata.text->entry_data;
@@ -2197,6 +2197,7 @@ static void
2197_evas_focus_in_cb(void *data, Evas *e, __UNUSED__ void *event_info) 2197_evas_focus_in_cb(void *data, Evas *e, __UNUSED__ void *event_info)
2198{ 2198{
2199 Edje *ed = (Edje *)data; 2199 Edje *ed = (Edje *)data;
2200 if (!ed) return;
2200 2201
2201 if (evas_focus_get(e) == ed->obj) 2202 if (evas_focus_get(e) == ed->obj)
2202 { 2203 {
@@ -2208,6 +2209,7 @@ static void
2208_evas_focus_out_cb(void *data, Evas *e, __UNUSED__ void *event_info) 2209_evas_focus_out_cb(void *data, Evas *e, __UNUSED__ void *event_info)
2209{ 2210{
2210 Edje *ed = (Edje *)data; 2211 Edje *ed = (Edje *)data;
2212 if (!ed) return;
2211 2213
2212 if (evas_focus_get(e) == ed->obj) 2214 if (evas_focus_get(e) == ed->obj)
2213 { 2215 {
@@ -2236,7 +2238,7 @@ _edje_entry_init(Edje *ed)
2236void 2238void
2237_edje_entry_shutdown(Edje *ed) 2239_edje_entry_shutdown(Edje *ed)
2238{ 2240{
2239 if (!ed->has_entries) 2241 if ((!ed) || (!ed->has_entries))
2240 return; 2242 return;
2241 if (!ed->entries_inited) 2243 if (!ed->entries_inited)
2242 return; 2244 return;