summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-11-17 23:36:46 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-11-17 23:45:56 +0100
commitb926ac2f511ccc13d5dfe6a8b181f575736ec00a (patch)
treee1361061097eca05cf71c2348d18f769f3aed1f4
parent38bb5e09db80f7897c633fd0e48fbcfbbc116dc5 (diff)
gadman: Check for valid objects
Fixes T522
-rw-r--r--src/modules/gadman/e_mod_gadman.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/gadman/e_mod_gadman.c b/src/modules/gadman/e_mod_gadman.c
index ea6bc698e..eb5425738 100644
--- a/src/modules/gadman/e_mod_gadman.c
+++ b/src/modules/gadman/e_mod_gadman.c
@@ -1286,8 +1286,10 @@ on_top(void *data, Evas_Object *o __UNUSED__, const char *em __UNUSED__, const c
1286 int layer = Man->visible; 1286 int layer = Man->visible;
1287 1287
1288 drag_gcc = Man->drag_gcc[layer]; 1288 drag_gcc = Man->drag_gcc[layer];
1289 if (!drag_gcc) return;
1289 1290
1290 mover = _get_mover(drag_gcc); 1291 mover = _get_mover(drag_gcc);
1292 if (!mover) return;
1291 mover_lock = EINA_TRUE; 1293 mover_lock = EINA_TRUE;
1292 1294
1293 if (action == DRAG_START) 1295 if (action == DRAG_START)
@@ -1350,8 +1352,10 @@ on_right(void *data, Evas_Object *o __UNUSED__, const char *em __UNUSED__, const
1350 int layer = Man->visible; 1352 int layer = Man->visible;
1351 1353
1352 drag_gcc = Man->drag_gcc[layer]; 1354 drag_gcc = Man->drag_gcc[layer];
1355 if (!drag_gcc) return;
1353 1356
1354 mover = _get_mover(drag_gcc); 1357 mover = _get_mover(drag_gcc);
1358 if (!mover) return;
1355 mover_lock = EINA_TRUE; 1359 mover_lock = EINA_TRUE;
1356 1360
1357 action = (int)(long)data; 1361 action = (int)(long)data;
@@ -1402,8 +1406,10 @@ on_down(void *data, Evas_Object *o __UNUSED__, const char *em __UNUSED__, const
1402 int layer = Man->visible; 1406 int layer = Man->visible;
1403 1407
1404 drag_gcc = Man->drag_gcc[layer]; 1408 drag_gcc = Man->drag_gcc[layer];
1409 if (!drag_gcc) return;
1405 1410
1406 mover = _get_mover(drag_gcc); 1411 mover = _get_mover(drag_gcc);
1412 if (!mover) return;
1407 mover_lock = EINA_TRUE; 1413 mover_lock = EINA_TRUE;
1408 1414
1409 if (action == DRAG_START) 1415 if (action == DRAG_START)
@@ -1452,8 +1458,10 @@ on_left(void *data, Evas_Object *o __UNUSED__, const char *em __UNUSED__, const
1452 int layer = Man->visible; 1458 int layer = Man->visible;
1453 1459
1454 drag_gcc = Man->drag_gcc[layer]; 1460 drag_gcc = Man->drag_gcc[layer];
1461 if (!drag_gcc) return;
1455 1462
1456 mover = _get_mover(drag_gcc); 1463 mover = _get_mover(drag_gcc);
1464 if (!mover) return;
1457 mover_lock = EINA_TRUE; 1465 mover_lock = EINA_TRUE;
1458 if (action == DRAG_START) 1466 if (action == DRAG_START)
1459 { 1467 {