elm_tooltip: use window as parent instead of NULL for elm_theme_object_set

Summary:
see 421217b150

If parent is NULL, is_legacy in _elm_theme_set is always true. and it will use
"efl/xxx" for mmap_set. this patch avoid this case.

fixes T6921

Test Plan:
1. elementary_test -to tooltip
2. check that "Hello", "Big Icon Tooltip", "Insanel Big Icon Tooltip" is working

Reviewers: zmike

Subscribers: cedric, ManMower, #committers

Tags: #efl

Maniphest Tasks: T6921

Differential Revision: https://phab.enlightenment.org/D6232
This commit is contained in:
YeongJong Lee 2018-05-31 09:46:12 -04:00 committed by Mike Blumenkrantz
parent 61dc4899b5
commit 121a85f2fc
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
{
const char *style = tt->style ? tt->style : "default";
const char *str;
if (!_elm_theme_object_set(tt->tt_win ? NULL : tt->owner, tt->tooltip,
if (!_elm_theme_object_set(tt->tt_win ? : tt->owner, tt->tooltip,
"tooltip", NULL, style))
{
ERR("Could not apply the theme to the tooltip! style=%s", style);