devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=bacc082418a2a460f8e25ec6c7a0a797d40833c9
commit bacc082418a2a460f8e25ec6c7a0a797d40833c9 Author: kabeer khan <kabeer.k...@samsung.com> Date: Wed Nov 26 09:07:46 2014 -0500 ecore-drm: Sending Active to login1.Session Summary: Resolved TODO to set Active and State property of login1.Session Set Active = true and State = 'active' via eldbus_proxy_property_set @fix Signed-off-by: kabeer khan <kabeer.k...@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1696 --- src/lib/ecore_drm/ecore_drm_dbus.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_dbus.c b/src/lib/ecore_drm/ecore_drm_dbus.c index 83b48b3..8a11f8f 100644 --- a/src/lib/ecore_drm/ecore_drm_dbus.c +++ b/src/lib/ecore_drm/ecore_drm_dbus.c @@ -98,6 +98,15 @@ _cb_device_resumed(void *ctxt EINA_UNUSED, const Eldbus_Message *msg) } } +static void +_property_response_set(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED) +{ + const char *errname; + const char *errmsg; + if (eldbus_message_error_get(msg, &errname, &errmsg)) + ERR("Eldbus Message error %s - %s\n\n", errname, errmsg); +} + static void _cb_properties_changed(void *data EINA_UNUSED, Eldbus_Proxy *proxy EINA_UNUSED, void *event) { @@ -111,7 +120,8 @@ _cb_properties_changed(void *data EINA_UNUSED, Eldbus_Proxy *proxy EINA_UNUSED, if (!strcmp(ev->name, "Active")) { - /* TODO: Send 'Active' to login1.Session */ + eldbus_proxy_property_set(proxy, "Active", "b", (void *)EINA_TRUE, _property_response_set, NULL); + eldbus_proxy_property_set(proxy, "State", "s", &"active", _property_response_set, NULL); } } --