forked from enlightenment/enlightenment
notification - play sound samples and advertise it in caps
This commit is contained in:
parent
91e797eab7
commit
2b095b67d1
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue