Compare commits

...

2 Commits

2 changed files with 11 additions and 23 deletions

View File

@ -200,29 +200,6 @@ hints_dict_iter(void *data, const void *key, Eldbus_Message_Iter *var)
}
}
/* this function should be external in edje for use in cases such as this module.
*
* happily, it was decided that the function would not be external so that it could
* be duplicated into the module in full.
*/
static int
_text_escape(Eina_Strbuf *txt, const char *text)
{
const char *escaped;
int advance;
escaped = evas_textblock_string_escape_get(text, &advance);
if (!escaped)
{
eina_strbuf_append_char(txt, text[0]);
advance = 1;
}
else
eina_strbuf_append(txt, escaped);
return advance;
}
static int
_tag_len(const char *txt)
{

View File

@ -613,6 +613,17 @@ _notification_popup_refresh(Popup_Data *popup)
snprintf(buf, sizeof(buf), "%s.desktop", popup->notif->desktop_entry);
desktop = efreet_util_desktop_file_id_find(buf);
if (!desktop)
{ // some apps name their desktops with capitals - err... Firefox
char *buf2 = strdup(buf);
if (buf2)
{
eina_str_tolower(&buf2);
desktop = efreet_util_desktop_file_id_find(buf2);
free(buf2);
}
}
if ((desktop) && (desktop->icon))
{
size = e_util_icon_size_normalize(width * e_scale);