From 9046a6b6f0be6508bd7c0a855edcbddb6a393638 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 2 Aug 2013 11:04:04 +0100 Subject: [PATCH] Add function to allow disable/enable of the indicator toggle. Signed-off-by: Chris Michael --- 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 f6e399e4a..9565d28ff 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -920,6 +920,19 @@ e_smart_monitor_output_get(Evas_Object *obj) return sd->output; } +void +e_smart_monitor_indicator_available_set(Evas_Object *obj, Eina_Bool available) +{ + E_Smart_Data *sd; + + /* try to get the objects smart data */ + if (!(sd = evas_object_smart_data_get(obj))) return 0; + if (available) + edje_object_signal_emit(sd->o_frame, "e,state,indicator,enabled", "e"); + else + edje_object_signal_emit(sd->o_frame, "e,state,indicator,disabled", "e"); +} + /* smart functions */ static void _e_smart_add(Evas_Object *obj)