From 23c7d0a98b0aca72674b92177c1c33e8e197442b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 3 Jan 2013 22:08:19 +0000 Subject: [PATCH] e/notification: fix typo and use designated initializers on server SVN revision: 82121 --- src/bin/e_notification.c | 5 +++-- src/modules/notification/e_mod_main.c | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/bin/e_notification.c b/src/bin/e_notification.c index 6dbdae8e4..dc10fb932 100644 --- a/src/bin/e_notification.c +++ b/src/bin/e_notification.c @@ -293,7 +293,7 @@ end: } static Eina_Bool -notification_cliend_dbus_send(E_Notification_Notify *notify, E_Notification_Client_Send_Cb cb, const void *data) +notification_client_dbus_send(E_Notification_Notify *notify, E_Notification_Client_Send_Cb cb, const void *data) { EDBus_Connection *conn; EDBus_Message *msg; @@ -392,8 +392,9 @@ e_notification_client_send(E_Notification_Notify *notify, E_Notification_Client_ EINA_SAFETY_ON_NULL_RETURN_VAL(notify, EINA_FALSE); normalize_notify(notify); + if (!n_data) - return notification_cliend_dbus_send(notify, cb, data); + return notification_client_dbus_send(notify, cb, data); //local copy = malloc(sizeof(E_Notification_Notify)); diff --git a/src/modules/notification/e_mod_main.c b/src/modules/notification/e_mod_main.c index a762b4fb1..a8694662a 100644 --- a/src/modules/notification/e_mod_main.c +++ b/src/modules/notification/e_mod_main.c @@ -153,7 +153,11 @@ _notification_corner_info_cb(E_Configure_Option *co) EAPI E_Module_Api e_modapi = {E_MODULE_API_VERSION, "Notification"}; static const E_Notification_Server_Info server_info = { - "e17", "enlightenment.org", "0.17", "1.2", {"body", "body-markup", NULL} + .name = "e17", + .vendor = "enlightenment.org", + .version = "0.17", + .spec_version = "1.2", + .capabilities = { "body", "body-markup", NULL } }; /* Callbacks */