Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entice
Dir : e17/apps/entice/src/bin
Modified Files:
entice.c image.c
Log Message:
fix a nasty bug that deletes files entice can't save, and emit signals to edje letting
it know how the saving went
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- entice.c 22 Apr 2004 16:31:58 -0000 1.51
+++ entice.c 24 Apr 2004 18:19:15 -0000 1.52
@@ -974,8 +974,9 @@
{
edje_freeze();
if (entice_image_save(entice->current))
- fprintf(stderr, "Saving was successul\n");
- /* FIXME: Emit a EnticeSaveOk or something signal */
+ edje_object_signal_emit(entice->edje, "entice,image,save,ok", "");
+ else
+ edje_object_signal_emit(entice->edje, "entice,image,save,fail", "");
edje_thaw();
}
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/image.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- image.c 9 Apr 2004 04:13:37 -0000 1.43
+++ image.c 24 Apr 2004 18:19:15 -0000 1.44
@@ -311,10 +311,10 @@
snprintf(tmpfile, PATH_MAX, "%s.%d", im->filename, getpid());
imlib_save_image_with_error_return(tmpfile, &err);
evas_image_cache_flush(evas_object_evas_get(im->obj));
- unlink(im->filename);
switch (err)
{
case 0:
+ unlink(im->filename);
if (!rename(tmpfile, im->filename))
result = 1;
break;
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs