devilhorns pushed a commit to branch master.

commit 9046a6b6f0be6508bd7c0a855edcbddb6a393638
Author: Chris Michael <[email protected]>
Date:   Fri Aug 2 11:04:04 2013 +0100

    Add function to allow disable/enable of the indicator toggle.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 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 f6e399e..9565d28 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)

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

Reply via email to