From c646c7de26c5bcc55f0259c4bb0371c8fc9541dd Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 10 Oct 2012 07:54:57 +0000 Subject: [PATCH] E (RandR): Add function to return monitor's connected state. Signed-off-by: Christopher Michael SVN revision: 77709 --- src/modules/conf_randr/e_smart_monitor.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 2ed377741..4e2dcd539 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -420,6 +420,17 @@ e_smart_monitor_mode_get(Evas_Object *obj) return sd->mode; } +Eina_Bool +e_smart_monitor_connected_get(Evas_Object *obj) +{ + E_Smart_Data *sd; + + if (!(sd = evas_object_smart_data_get(obj))) + return EINA_FALSE; + + return sd->connected; +} + /* local functions */ static void _e_smart_add(Evas_Object *obj)