summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-08-02 11:04:04 +0100
committerDeon Thomas <PrinceAMD.Elive@gmail.com>2013-08-02 10:43:46 -0400
commite998dc38cf2ce15f3caaafd64405344cce607a13 (patch)
treeb17913f01e58ae82d52cafebebb9c0a876d8a6e8
parent4f4f0c04b31cdae6a6ec9a870377bc881f2ed955 (diff)
downloadenlightenment-e998dc38cf2ce15f3caaafd64405344cce607a13.tar.gz
Backport: 9046a6b :: Add function to allow disable/enable of the indicator toggle.
Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
-rw-r--r--src/modules/conf_randr/e_smart_monitor.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c
index 8319803fef..13d5db96ba 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -904,6 +904,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)