notification - play sound samples and advertise it in caps

master
Carsten Haitzler 2 months ago
parent 91e797eab7
commit 2b095b67d1
  1. 7
      src/modules/notification/e_mod_main.c
  2. 9
      src/modules/notification/e_mod_popup.c

@ -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…
Cancel
Save