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>
This commit is contained in:
Chris Michael 2013-08-02 11:04:04 +01:00 committed by Deon Thomas
parent 4f4f0c04b3
commit e998dc38cf
1 changed files with 13 additions and 0 deletions

View File

@ -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)