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
This commit is contained in:
Amitesh Singh 2015-05-19 18:09:50 +09:00 committed by Carsten Haitzler (Rasterman)
parent 5535831733
commit 2cd50b4e7f
1 changed files with 2 additions and 1 deletions

View File

@ -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",