From 3ba73d30d8b2377205050b25667e9ccbfee4fcea Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 17 Dec 2012 13:42:12 +0000 Subject: [PATCH] Add function to return current enabled state. Signed-off-by: Christopher Michael SVN revision: 81139 --- 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 1a580188a..9aa639763 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -441,6 +441,19 @@ e_smart_monitor_current_mode_get(Evas_Object *obj) return sd->current.mode; } +Eina_Bool +e_smart_monitor_current_enabled_get(Evas_Object *obj) +{ + E_Smart_Data *sd; + + /* try to get the objects smart data */ + if (!(sd = evas_object_smart_data_get(obj))) + return EINA_FALSE; + + /* return the current enabled mode */ + return sd->current.enabled; +} + void e_smart_monitor_clone_add(Evas_Object *obj, Evas_Object *mon) {