remove hardcoded transparency from tooltip, add data item to edc to enable it

SVN revision: 61845
This commit is contained in:
Mike Blumenkrantz 2011-07-28 10:08:07 +00:00
parent 52d5130947
commit fb13968e89
2 changed files with 4 additions and 1 deletions

View File

@ -6388,6 +6388,7 @@ collections {
data {
item: "pad_x" "10";
item: "pad_y" "10";
item: "transparent" "enabled";
}
parts {
part { name: "elm.swallow.content";

View File

@ -277,9 +277,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);