Enlightenment CVS committal

Author  : handyande
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/entangle


Modified Files:
        entangle_ui.c 


Log Message:
only if engage is on the system
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/entangle/entangle_ui.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- entangle_ui.c       2 May 2005 11:12:47 -0000       1.2
+++ entangle_ui.c       3 May 2005 15:27:46 -0000       1.3
@@ -664,6 +664,7 @@
 {
     Evas_Object *o;
     Evas *evas;
+    char path[PATH_MAX];
 
     evas = evas_object_evas_get(container);
 
@@ -673,8 +674,12 @@
     o = entangle_ui_button_get(evas, "iBar", "bar");
     esmart_container_element_append(container, o);
 
-    o = entangle_ui_button_get(evas, "Engage", "engage");
-    esmart_container_element_append(container, o);
+    snprintf(path, PATH_MAX, "%s/.e/e/applications/engage", getenv("HOME"));
+    if (ecore_file_exists(path))
+    {
+        o = entangle_ui_button_get(evas, "Engage", "engage");
+        esmart_container_element_append(container, o);
+    }
 
     o = entangle_ui_button_get(evas, "Startup", "startup");
     esmart_container_element_append(container, o);




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to