Hello,

With the recent changes to ecore_x dpms E no longer builds.

The DPMS configuration panel needs a slight tweak. At the very least the attached patch will allow you to build E again. It now uses the new api to check to see if the DPMS extension is available, and then checks to see if the server is capable.

Note that there still needs to be work done to configure so that you can utilize the configuration panel again.

--
Regards,
Ravenlock
Index: e17/apps/e/src/bin/e_int_config_dpms.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_int_config_dpms.c,v
retrieving revision 1.2
diff -u -r1.2 e_int_config_dpms.c
--- e17/apps/e/src/bin/e_int_config_dpms.c      1 Mar 2007 02:43:41 -0000       
1.2
+++ e17/apps/e/src/bin/e_int_config_dpms.c      9 Mar 2007 11:23:45 -0000
@@ -12,6 +12,9 @@
 static void _cb_suspend_slider_change(void *data, Evas_Object *obj);
 static void _cb_off_slider_change(void *data, Evas_Object *obj);
 
+static int _e_int_config_dpms_available();
+static int _e_int_config_dpms_capable();
+
 struct _E_Config_Dialog_Data
 {
    E_Config_Dialog *cfd;
@@ -46,10 +49,30 @@
 static int
 _e_int_config_dpms_capable()
 {
-   if (ecore_x_dpms_capable()) return 1;
+   if (ecore_x_dpms_capable_get()) return 1;
+   
+   if (dpms_dialog) e_object_del(E_OBJECT(dpms_dialog));
+   dpms_dialog = 
e_dialog_new(e_container_current_get(e_manager_current_get()), "E", 
"_dpms_capable_dialog");
+   if (!dpms_dialog) return 0;
+      
+   e_dialog_title_set(dpms_dialog, _("Display Power Management Signaling"));
+   e_dialog_text_set(dpms_dialog, _("The current display server is not <br>"
+                                   "DPMS capable."));
+   e_dialog_icon_set(dpms_dialog, "enlightenment/dpms", 64);
+   e_dialog_button_add(dpms_dialog, _("OK"), NULL, _cb_dpms_dialog_ok, NULL);
+   e_dialog_button_focus_num(dpms_dialog, 1);
+   e_win_centered_set(dpms_dialog->win, 1);
+   e_dialog_show(dpms_dialog);
+   return 0;
+}
+
+static int
+_e_int_config_dpms_available()
+{
+   if (ecore_x_dpms_query()) return 1;
    
    if (dpms_dialog) e_object_del(E_OBJECT(dpms_dialog));
-   dpms_dialog = 
e_dialog_new(e_container_current_get(e_manager_current_get()), "E", 
"_dpms_dialog");
+   dpms_dialog = 
e_dialog_new(e_container_current_get(e_manager_current_get()), "E", 
"_dpms_available_dialog");
    if (!dpms_dialog) return 0;
       
    e_dialog_title_set(dpms_dialog, _("Display Power Management Signaling"));
@@ -69,7 +92,8 @@
    E_Config_Dialog *cfd;
    E_Config_Dialog_View *v;
    
-   if ((e_config_dialog_find("E", "_config_dpms_dialog")) || 
+   if ((e_config_dialog_find("E", "_config_dpms_dialog")) ||
+       (!_e_int_config_dpms_available()) ||               
        (!_e_int_config_dpms_capable()))
      return NULL;
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to