princeamd pushed a commit to branch enlightenment-0.17.

commit f2d9856ccb1f9d3162417dcad63325f7780fe6c2
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 10:55:45 2013 +0000

    Backport: 7246631 :: Add crtc and output configs to smart_data structure. 
Add functions to set crtc and output configs.
    
    Signed-off-by: Christopher Michael <[email protected]>
    
    SVN revision: 84130
    Signed-off-by: Deon Thomas <[email protected]>
---
 src/modules/conf_randr/e_smart_monitor.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/src/modules/conf_randr/e_smart_monitor.c 
b/src/modules/conf_randr/e_smart_monitor.c
index 1b59d87..59e1fca 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -9,6 +9,12 @@ struct _E_Smart_Data
    /* canvas variable */
    Evas *evas;
 
+   /* crtc config */
+   E_Randr_Crtc_Config *crtc;
+
+   /* output config */
+   E_Randr_Output_Config *output;
+
    /* visibility flag */
    Eina_Bool visible : 1;
 }
@@ -46,6 +52,30 @@ e_smart_monitor_add(Evas *evas)
    return evas_object_smart_add(evas, smart);
 }
 
+void 
+e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Config *crtc)
+{
+   E_Smart_Data *sd;
+
+   /* try to get the objects smart data */
+   if (!(sd = evas_object_smart_data_get(obj))) return;
+
+   /* set the crtc config */
+   sd->crtc = crtc;
+}
+
+void 
+e_smart_monitor_output_set(Evas_Object *obj, E_Randr_Output_Config *output)
+{
+   E_Smart_Data *sd;
+
+   /* try to get the objects smart data */
+   if (!(sd = evas_object_smart_data_get(obj))) return;
+
+   /* set the output config */
+   sd->output = output;
+}
+
 /* local functions */
 static void 
 _e_smart_add(Evas_Object *obj)

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to