Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.h e_eap_editor.c e_int_border_menu.c 
        e_int_gadcon_config.c 


Log Message:
Delete tmpfile after use.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_apps.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_apps.h    14 May 2006 01:13:42 -0000      1.32
+++ e_apps.h    20 Jul 2006 11:19:08 -0000      1.33
@@ -62,9 +62,11 @@
 
    unsigned char       deleted : 1; /* this app's file is deleted from disk */
    
+   /* used for eap edit */
    const char         *image; /* used when we're saving a image into the eap */
    int                 width; /* used for saving eap's image width in edje */
    int                 height; /* used for saving eap's image height in edje */
+   unsigned char       tmpfile : 1;
 };
 
 struct _E_App_Instance
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_eap_editor.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_eap_editor.c      20 Jul 2006 11:02:23 -0000      1.32
+++ e_eap_editor.c      20 Jul 2006 11:19:08 -0000      1.33
@@ -136,6 +136,8 @@
    E_FREE(data->wrole);
    E_FREE(data->iclass);
    E_FREE(data->image);
+   if (data->editor->eap->tmpfile) ecore_file_unlink(data->editor->eap->image);
+   data->editor->eap->tmpfile = 0;
    if (data->editor->eap->image) 
evas_stringshare_del(data->editor->eap->image);
    data->editor->eap->width = 0;
    data->editor->eap->height = 0;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_int_border_menu.c 19 Jul 2006 14:15:21 -0000      1.33
+++ e_int_border_menu.c 20 Jul 2006 11:19:08 -0000      1.34
@@ -573,6 +573,7 @@
                       a->image = evas_stringshare_add(path);
                       a->width = bd->client.netwm.icons[0].width;
                       a->height = bd->client.netwm.icons[0].height;
+                      a->tmpfile = 1;
                    }
                  else
                    {
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_gadcon_config.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- e_int_gadcon_config.c       2 Jul 2006 16:19:51 -0000       1.23
+++ e_int_gadcon_config.c       20 Jul 2006 11:19:08 -0000      1.24
@@ -199,7 +199,6 @@
 {
    Evas_Object *o, *of, *ob, *oi;
    Evas_Coord wmw, wmh;
-   Evas_List *l, *l2;
 
    o = e_widget_list_add(evas, 0, 1);
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to