From 23fb0721729adecb0b80073b4e2ccfb6e364a131 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 11 Oct 2012 12:42:20 +0000 Subject: [PATCH] E (RandR): Add function to retrieve monitor's output. Signed-off-by: Christopher Michael SVN revision: 77867 --- src/modules/conf_randr/e_smart_monitor.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 0c7e1e1bb..247bcc694 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -373,6 +373,19 @@ e_smart_monitor_crtc_get(Evas_Object *obj) return crtc; } +E_Randr_Output_Info * +e_smart_monitor_output_get(Evas_Object *obj) +{ + E_Smart_Data *sd; + + if (!obj) return NULL; + + if (!(sd = evas_object_smart_data_get(obj))) + return NULL; + + return sd->output; +} + void e_smart_monitor_crtc_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) {