Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_apps.c 


Log Message:
Put the add app button back until issues with fm2 .order files are sorted 
out.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- e_int_config_apps.c 5 Nov 2006 11:51:45 -0000       1.36
+++ e_int_config_apps.c 6 Nov 2006 17:25:09 -0000       1.37
@@ -468,7 +468,8 @@
          _append_to_order(realpath, ecore_file_get_file(buf));
       }
 
-//   e_fm2_refresh(cfdata->gui.o_fm);
+// FIXME: When fm is fixed to create the .order files for us, then we can 
remove this.
+   e_fm2_refresh(cfdata->gui.o_fm);
 }
 
 static void
@@ -600,11 +601,11 @@
    if (once)
       mt = e_widget_button_add(evas, _(once->label), "enlightenment/e",
                           _cb_button_add, cfdata, NULL);
-/*
+/* Put this back in temporarily until raster fixes fm. */ 
    else
-      mt = e_widget_button_add(evas, _("Add application..."), 
"enlightenment/e",
+      mt = e_widget_button_add(evas, _("Add application ->"), 
"enlightenment/e",
                           _cb_button_add, cfdata, NULL);
-*/
+/* */
    if (mt)
      {
         cfdata->gui.o_add_button = mt;
@@ -845,32 +846,35 @@
    FILE *f;
 
    snprintf(buf, sizeof(buf), "%s/.order", order);
-   if (!ecore_file_exists(buf)) return;
-   f = fopen(buf, "rb");
-   if (!f) return;
-
-   while (fgets(buf, sizeof(buf), f))
+   if (ecore_file_exists(buf))
      {
-       int len;
-
-       len = strlen(buf);
-       if (len > 0)
+        f = fopen(buf, "r");
+       if (f)
          {
-            if (buf[len - 1] == '\n')
-              {
-                 buf[len - 1] = 0;
-                 len--;
-              }
-             list = evas_list_append(list, strdup(buf));
+             while (fgets(buf, sizeof(buf), f))
+               {
+                 int len;
+
+                 len = strlen(buf);
+                 if (len > 0)
+                   {
+                      if (buf[len - 1] == '\n')
+                        {
+                           buf[len - 1] = 0;
+                           len--;
+                        }
+                       list = evas_list_append(list, strdup(buf));
+                   }
+               }
+             fclose(f);
          }
+        snprintf(buf, sizeof(buf), "%s/.order", order);
+        ecore_file_unlink(buf);
      }
-   fclose(f);
 
    list = evas_list_append(list, strdup(file));
 
-   snprintf(buf, sizeof(buf), "%s/.order", order);
-   ecore_file_unlink(buf);
-   f = fopen(buf, "wb");
+   f = fopen(buf, "w");
    if (!f) return;
    for (l = list; l; l = l->next)
      {
@@ -882,9 +886,6 @@
      }
    fclose(f);
    evas_list_free(list);
-
-   snprintf(buf, sizeof(buf), "%s/.eap.cache.cfg", order);
-   ecore_file_unlink(buf);
 
    return;
 }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to