From 2cd50b4e7f89e218cc770ed2c77bdefa8e2e4a98 Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Tue, 19 May 2015 18:09:50 +0900 Subject: [PATCH] tooltip: set the correct style of label. Summary: check theme of tooltip label by $clouseau elementary_test -to "tooltip" tooltipi label theme was elm/label/base/default but we want theme "elm/label/base/tooltip/default" to be set instead. @fix Test Plan: $clouseau elementary_test -to "tooltip" Reviewers: raster, Hermet Subscribers: seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D2509 --- legacy/elementary/src/lib/els_tooltip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/els_tooltip.c b/legacy/elementary/src/lib/els_tooltip.c index 811c69841e..fecdb8bc38 100644 --- a/legacy/elementary/src/lib/els_tooltip.c +++ b/legacy/elementary/src/lib/els_tooltip.c @@ -735,8 +735,9 @@ _tooltip_label_style_set(Evas_Object *obj, Evas_Object *label) { ELM_TOOLTIP_GET_OR_RETURN(tt, obj); char buf[100] = {0}; + const char *style = tt->style ? tt->style : "default"; - sprintf(buf, "tooltip/%s", tt->style); + sprintf(buf, "tooltip/%s", style); if (!elm_object_style_set(label, buf)) { WRN("Failed to set tooltip label style: %s, reverting to old style",