jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2dbd704daee270d33dbfe6be25a5bd1ab287bf57

commit 2dbd704daee270d33dbfe6be25a5bd1ab287bf57
Author: Jean-Philippe Andre <[email protected]>
Date:   Wed Sep 20 18:05:03 2017 +0900

    hover: Fix hover parts usage
    
    The string comparison was invalid for full part names. It worked with
    the aliases, by chance, not by design.
    
    This got broken by eee60abbcf but using full part names from the
    application side was already broken before that.
    
    @fix
---
 src/lib/elementary/elm_hover.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_hover.c b/src/lib/elementary/elm_hover.c
index 0e8f85820a..7d51ae72c1 100644
--- a/src/lib/elementary/elm_hover.c
+++ b/src/lib/elementary/elm_hover.c
@@ -456,8 +456,8 @@ _elm_hover_content_set(Eo *obj, Elm_Hover_Data *sd, const 
char *swallow, Evas_Ob
    int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), swallow), 
content);
    if (!int_ret) return EINA_FALSE;
 
-   if (strstr(swallow, "elm.swallow.slot."))
-     swallow += sizeof("elm.swallow.slot.");
+   if (!strncmp(swallow, "elm.swallow.slot.", sizeof("elm.swallow.slot")))
+     swallow += sizeof("elm.swallow.slot");
 
    ELM_HOVER_PARTS_FOREACH
    {

-- 


Reply via email to