Compare commits
2 Commits
b23eedae98
...
cdad184547
Author | SHA1 | Date |
---|---|---|
Carsten Haitzler | cdad184547 | |
Carsten Haitzler | bfd175e985 |
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue