Ecore_X(cb): ecore_x_dpms functions return Eina_Bool, so let's use that.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 30 Aug 2011 18:30:17 +0000 (18:30 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 30 Aug 2011 18:30:17 +0000 (18:30 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63001 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xcb/ecore_xcb_dpms.c

index 2cf45b7..79760bc 100644 (file)
@@ -67,7 +67,7 @@ _ecore_xcb_dpms_finalize(void)
 EAPI Eina_Bool 
 ecore_x_dpms_query(void) 
 {
-   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+//   LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    return _dpms_avail;
 }
@@ -80,7 +80,7 @@ ecore_x_dpms_query(void)
 EAPI Eina_Bool 
 ecore_x_dpms_capable_get(void) 
 {
-   int ret = EINA_FALSE;
+   Eina_Bool ret = EINA_FALSE;
 #ifdef ECORE_XCB_DPMS
    xcb_dpms_capable_cookie_t cookie;
    xcb_dpms_capable_reply_t *reply;
@@ -111,7 +111,7 @@ ecore_x_dpms_capable_get(void)
 EAPI Eina_Bool 
 ecore_x_dpms_enabled_get(void) 
 {
-   int ret = EINA_FALSE;
+   Eina_Bool ret = EINA_FALSE;
 #ifdef ECORE_XCB_DPMS
    xcb_dpms_info_cookie_t cookie;
    xcb_dpms_info_reply_t *reply;
@@ -201,6 +201,7 @@ ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned i
    if (!_dpms_avail) return EINA_FALSE;
 
 #ifdef ECORE_XCB_DPMS
+   // FIXME: Add request check
    xcb_dpms_set_timeouts(_ecore_xcb_conn, standby, suspend, off);
    return EINA_TRUE;
 #endif