els_tooltip: Remove infinite job calls
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 29 Jun 2017 07:12:37 +0000 (16:12 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 29 Jun 2017 08:14:18 +0000 (17:14 +0900)
Summary:
When tooltip or content size is 0, tooltip reconfigure job is called infinitely.
This patch removes the infinite job calls.

Test Plan:
See following patch, test case "Tooltip" -> "Tooltip with no min size"

Reviewers: zmike

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4982

src/lib/elementary/els_tooltip.c

index 89febf6..0fc32d6 100644 (file)
@@ -518,17 +518,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
    if (eminw && (ominw < eminw)) ominw = eminw;
    if (eminh && (ominh < eminh)) ominh = eminh;
 
-   if ((ominw < 1) || (ominh < 1))
-     {
-        evas_object_move(tt->tt_win ? : tt->tooltip, -9999, -9999);
-        evas_object_resize(tt->tt_win ? : tt->tooltip, 1, 1);
-        TTDBG("FAKE: tx=%d,ty=%d,tw=%d,th=%d\n", -9999, -9999, 1, 1);
-        evas_object_show(tt->tooltip);
-        if (tt->tt_win) evas_object_show(tt->tt_win);
-        _elm_tooltip_reconfigure_job_start(tt);
-        return;
-     }
-
    edje_object_size_min_restricted_calc(tt->tooltip, &tw, &th, ominw, ominh);
    TTDBG("TTSIZE:  tw=%d,th=%d,ominw=%d,ominh=%d\n", tw, th, ominw, ominh);