remove hardcoded transparency from tooltip, add data item to edc to enable it
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Jul 2011 10:08:07 +0000 (10:08 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Wed, 23 Nov 2011 00:56:34 +0000 (09:56 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61845 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/els_tooltip.c

index 0bf41ca..e15a1ed 100644 (file)
@@ -269,9 +269,11 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
         tt->pad.bx = 0;
         tt->pad.by = 0;
         tt->hide_timeout = 0.0;
+
+        str = edje_object_data_get(tt->tooltip, "transparent");
         if (tt->tt_win)
           {  /* FIXME: hardcoded here is bad */
-             if (!strcmp(style, "transparent"))
+             if (str && (!strcmp(str, "enabled")))
                {
                   elm_win_alpha_set(tt->tt_win, EINA_TRUE);
                   elm_win_transparent_set(tt->tt_win, EINA_TRUE);