elm_tooltip: use window as parent instead of NULL for elm_theme_object_set
authorYeongJong Lee <yj34.lee@samsung.com>
Thu, 31 May 2018 13:46:12 +0000 (09:46 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 1 Jun 2018 05:48:22 +0000 (14:48 +0900)
Summary:
see 421217b15019966a093ed49a34837f9535e00827

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

src/lib/elementary/els_tooltip.c

index 8021aa3..3603221 100644 (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);