diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-06-20 12:36:35 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-06-20 12:37:28 -0400 |
commit | a93aadfe010d7eefd8d2dfd453a44b62aa23644f (patch) | |
tree | f642f6a81fab11779f9d45f1b345515df41864c4 | |
parent | aa1768a9d9d12812928961e7e302005fbfc4e6fa (diff) | |
download | enlightenment-a93aadfe010d7eefd8d2dfd453a44b62aa23644f.tar.gz |
replace wireless connection error #warning with notification
this needs a more robust infrastructure than I'm prepared to write at
the moment, but errors do need to be seen
-rw-r--r-- | src/modules/wireless/connman.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/modules/wireless/connman.c b/src/modules/wireless/connman.c index 6beb24a517..dccecf296c 100644 --- a/src/modules/wireless/connman.c +++ b/src/modules/wireless/connman.c @@ -990,7 +990,22 @@ _connman_agent_release(const Eldbus_Service_Interface *iface EINA_UNUSED, const static Eldbus_Message * _connman_agent_report_error(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Message *msg EINA_UNUSED) { -#warning FIXME + const char *path, *err; + E_Notification_Notify n; + + if (!eldbus_message_arguments_get(msg, "ss", &path, &err)) + { + ERR("Could not parse message %p", msg); + return NULL; + } + /* TODO: need a generic "sticky" gadget popup */ + memset(&n, 0, sizeof(E_Notification_Notify)); + n.timeout = 3000; + n.summary = _("Connection Error"); + n.body = err; + n.urgency = E_NOTIFICATION_NOTIFY_URGENCY_NORMAL; + e_notification_client_send(&n, NULL, NULL); + return NULL; } |