Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_int_menus.c 


Log Message:


for now dont check valid exe BUt use the call

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -3 -r1.80 -r1.81
--- e_apps.c    28 Sep 2005 03:35:16 -0000      1.80
+++ e_apps.c    28 Sep 2005 03:44:31 -0000      1.81
@@ -1021,7 +1021,8 @@
 e_app_valid_exe_get(E_App *a)
 {
    if (!a->exe) return 0;
-   if (!ecore_file_app_installed(a->exe)) return 0;
+//   if (!ecore_file_app_installed(a->exe)) return 0;
+   return 1;
 }
 
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -3 -r1.97 -r1.98
--- e_int_menus.c       24 Sep 2005 09:04:39 -0000      1.97
+++ e_int_menus.c       28 Sep 2005 03:44:31 -0000      1.98
@@ -408,22 +408,25 @@
          {
             a = l->data;
             
-            mi = e_menu_item_new(m);
-            e_menu_item_label_set(mi, a->name);
-            if (a->exe)
-              {
-                 e_menu_item_icon_edje_set(mi, a->path, "icon");
-                 e_menu_item_callback_set(mi, _e_int_menus_apps_run, a);
-                 app_count++;
-              }
-            else
+             if (e_app_valid_exe_get(a))
               {
-                 char buf[4096];
-                 
-                 snprintf(buf, sizeof(buf), "%s/.directory.eap", a->path);
-                 e_menu_item_icon_edje_set(mi, buf, "icon");
-                 e_menu_item_submenu_set(mi, e_int_menus_apps_new(a->path));
-                 app_count++;
+                 mi = e_menu_item_new(m);
+                 e_menu_item_label_set(mi, a->name);
+                 if (a->exe)
+                   {
+                      e_menu_item_icon_edje_set(mi, a->path, "icon");
+                      e_menu_item_callback_set(mi, _e_int_menus_apps_run, a);
+                      app_count++;
+                   }
+                 else
+                   {
+                      char buf[4096];
+                      
+                      snprintf(buf, sizeof(buf), "%s/.directory.eap", a->path);
+                      e_menu_item_icon_edje_set(mi, buf, "icon");
+                      e_menu_item_submenu_set(mi, 
e_int_menus_apps_new(a->path));
+                      app_count++;
+                   }
               }
          }
      }




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to