notification - play sound samples and advertise it in caps

This commit is contained in:
Carsten Haitzler 2022-06-18 12:21:00 +01:00
parent 91e797eab7
commit 2b095b67d1
2 changed files with 13 additions and 3 deletions

View File

@ -35,12 +35,13 @@ static const E_Notification_Server_Info server_info = {
.capabilities = {
"body", "body-markup",
"body-hyperlinks", "body-images",
"actions", "action-icons",
"actions",
// "action-icons",
// "icon-multi",
// or
// "icon-static",
"icon-static",
"persistence",
// "sound",
"sound",
NULL }
};

View File

@ -708,6 +708,15 @@ _notification_popup_refresh(Popup_Data *popup)
h = MIN(h, zone->h / 2);
}
evas_object_resize(popup->win, w, h);
if (popup->notif->sound_file)
{
e_sound_file_play(popup->notif->sound_file, 1.0);
}
// we don't do sound themes/schemes .. but we know about it...
// else if (popup->notif->sound_name)
// {
// }
}
static Popup_Data *