forked from enlightenment/enlightenment
Add function to allow disable/enable of the indicator toggle.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1aa4f1e39f
commit
9046a6b6f0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue