Enlightenment CVS committal
Author : fletch3k
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
main.c storage.c
Log Message:
Autosave fix
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- main.c 28 Aug 2004 13:09:08 -0000 1.10
+++ main.c 8 Sep 2004 10:54:02 -0000 1.11
@@ -77,6 +77,11 @@
"Since the Control Centre is turned off,\nthis message
is being displayed to say:\n\nE-Notes is running.");
}
+ /* Autoloading */
+ if (main_config->autosave == 1) {
+ autoload();
+ }
+
/* Display the Introduction Note */
if (main_config->intro == 1) {
FILE *file;
@@ -112,11 +117,6 @@
free_note_stor(tmpn);
}
- /* Autoloading */
- if (main_config->autosave == 1) {
- autoload();
- }
-
if (main_config->welcome == 1) {
open_welcome();
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/storage.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- storage.c 11 Mar 2004 17:28:58 -0000 1.6
+++ storage.c 8 Sep 2004 10:54:02 -0000 1.7
@@ -373,7 +373,7 @@
xml_write_end(p);
free(pp);
- while ((tmp = evas_list_next(tmp)) != NULL) {
+ while (tmp != NULL) {
note = evas_list_data(tmp);
ecore_evas_geometry_get(note->win, &x, &y, &w, &h);
n = alloc_note_stor();
@@ -383,6 +383,7 @@
n->content = strdup(get_content_by_note(tmp));
append_autosave_note_stor(n);
free_note_stor(n);
+ tmp = evas_list_next(tmp);
}
return;
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs