raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=8826d9ac965992df167ce535f296ff33a487495a

commit 8826d9ac965992df167ce535f296ff33a487495a
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Tue May 19 18:09:50 2015 +0900

    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
---
 src/lib/els_tooltip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index 811c698..fecdb8b 100644
--- a/src/lib/els_tooltip.c
+++ b/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",

-- 


Reply via email to