summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-20 18:05:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-21 12:28:20 +0900
commit2dbd704daee270d33dbfe6be25a5bd1ab287bf57 (patch)
tree9a27cf90c49f187fa838e473554d619cc59c2e57 /src/lib/elementary
parent1c207058bae5eb5cc987f8aea6e3c0dc04891267 (diff)
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_hover.c4
1 files 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
456 int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), swallow), content); 456 int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), swallow), content);
457 if (!int_ret) return EINA_FALSE; 457 if (!int_ret) return EINA_FALSE;
458 458
459 if (strstr(swallow, "elm.swallow.slot.")) 459 if (!strncmp(swallow, "elm.swallow.slot.", sizeof("elm.swallow.slot")))
460 swallow += sizeof("elm.swallow.slot."); 460 swallow += sizeof("elm.swallow.slot");
461 461
462 ELM_HOVER_PARTS_FOREACH 462 ELM_HOVER_PARTS_FOREACH
463 { 463 {