diff options
author | Jaeun Choi <jaeun12.choi@samsung.com> | 2019-01-25 13:46:12 +0900 |
---|---|---|
committer | Jaeun Choi <jaeun12.choi@samsung.com> | 2019-01-25 14:26:12 +0900 |
commit | ee5a59a58d523f95b9a1cb69e66d27f90bcebce2 (patch) | |
tree | a95dcbdf9aa29d2782b6c306fb47dcfe519f30b9 /src/lib/elementary/efl_ui_pager.c | |
parent | cce9022de7606b4e73e3bfb27822b8cfc35e28ea (diff) |
efl_ui_pager: remove unnecessary lines
Diffstat (limited to '')
-rw-r--r-- | src/lib/elementary/efl_ui_pager.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c index 64c6207333..cc48b9b43f 100644 --- a/src/lib/elementary/efl_ui_pager.c +++ b/src/lib/elementary/efl_ui_pager.c | |||
@@ -406,10 +406,7 @@ _efl_ui_pager_efl_pack_linear_pack_begin(Eo *obj EINA_UNUSED, | |||
406 | } | 406 | } |
407 | 407 | ||
408 | if (pd->indicator) | 408 | if (pd->indicator) |
409 | { | 409 | efl_page_indicator_pack(pd->indicator, 0); |
410 | efl_page_indicator_pack(pd->indicator, 0); | ||
411 | efl_page_indicator_update(pd->indicator, pd->curr.pos); | ||
412 | } | ||
413 | 410 | ||
414 | return EINA_TRUE; | 411 | return EINA_TRUE; |
415 | } | 412 | } |
@@ -436,10 +433,7 @@ _efl_ui_pager_efl_pack_linear_pack_end(Eo *obj EINA_UNUSED, | |||
436 | } | 433 | } |
437 | 434 | ||
438 | if (pd->indicator) | 435 | if (pd->indicator) |
439 | { | 436 | efl_page_indicator_pack(pd->indicator, (pd->cnt - 1)); |
440 | efl_page_indicator_pack(pd->indicator, (pd->cnt - 1)); | ||
441 | efl_page_indicator_update(pd->indicator, pd->curr.pos); | ||
442 | } | ||
443 | 437 | ||
444 | return EINA_TRUE; | 438 | return EINA_TRUE; |
445 | } | 439 | } |
@@ -465,10 +459,7 @@ _efl_ui_pager_efl_pack_linear_pack_before(Eo *obj EINA_UNUSED, | |||
465 | else efl_canvas_object_clip_set(subobj, pd->backclip); | 459 | else efl_canvas_object_clip_set(subobj, pd->backclip); |
466 | 460 | ||
467 | if (pd->indicator) | 461 | if (pd->indicator) |
468 | { | 462 | efl_page_indicator_pack(pd->indicator, index); |
469 | efl_page_indicator_pack(pd->indicator, index); | ||
470 | efl_page_indicator_update(pd->indicator, pd->curr.pos); | ||
471 | } | ||
472 | 463 | ||
473 | return EINA_TRUE; | 464 | return EINA_TRUE; |
474 | } | 465 | } |
@@ -494,10 +485,7 @@ _efl_ui_pager_efl_pack_linear_pack_after(Eo *obj EINA_UNUSED, | |||
494 | else efl_canvas_object_clip_set(subobj, pd->backclip); | 485 | else efl_canvas_object_clip_set(subobj, pd->backclip); |
495 | 486 | ||
496 | if (pd->indicator) | 487 | if (pd->indicator) |
497 | { | 488 | efl_page_indicator_pack(pd->indicator, (index + 1)); |
498 | efl_page_indicator_pack(pd->indicator, (index + 1)); | ||
499 | efl_page_indicator_update(pd->indicator, pd->curr.pos); | ||
500 | } | ||
501 | 489 | ||
502 | return EINA_TRUE; | 490 | return EINA_TRUE; |
503 | } | 491 | } |
@@ -534,10 +522,7 @@ _efl_ui_pager_efl_pack_linear_pack_at(Eo *obj, | |||
534 | else efl_canvas_object_clip_set(subobj, pd->backclip); | 522 | else efl_canvas_object_clip_set(subobj, pd->backclip); |
535 | 523 | ||
536 | if (pd->indicator) | 524 | if (pd->indicator) |
537 | { | 525 | efl_page_indicator_pack(pd->indicator, index); |
538 | efl_page_indicator_pack(pd->indicator, index); | ||
539 | efl_page_indicator_update(pd->indicator, pd->curr.pos); | ||
540 | } | ||
541 | } | 526 | } |
542 | 527 | ||
543 | return EINA_TRUE; | 528 | return EINA_TRUE; |