Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
E.h main.c
Log Message:
Run menu generation on startup only if menus subdir doesn't exist.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.521
retrieving revision 1.522
diff -u -3 -r1.521 -r1.522
--- E.h 24 Dec 2005 00:39:29 -0000 1.521
+++ E.h 28 Dec 2005 09:59:53 -0000 1.522
@@ -563,6 +563,7 @@
char keybinds_changed;
char showing_desktop;
Window button_proxy_win;
+ char firsttime;
}
EMode;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/main.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -3 -r1.135 -r1.136
--- main.c 6 Nov 2005 18:12:12 -0000 1.135
+++ main.c 28 Dec 2005 09:59:53 -0000 1.136
@@ -299,7 +299,6 @@
if (!Mode.wm.restart)
StartupWindowsOpen();
- Conf.startup.firsttime = 0;
Mode.wm.save_ok = Conf.autosave;
Mode.wm.startup = 0;
autosave();
@@ -498,7 +497,7 @@
SessionHelper(ESESSION_START);
- if (Conf.startup.firsttime && Mode.wm.master)
+ if (Mode.firsttime && Mode.wm.master)
{
RunMenuGen();
RunDocBrowser();
@@ -660,6 +659,9 @@
else
E_md(s);
+ Esnprintf(s, sizeof(s), "%s/menus", EDirUser());
+ Mode.firsttime = !exists(s);
+
EDirMake(EDirUser(), "themes");
EDirMake(EDirUser(), "backgrounds");
EDirMake(EDirUser(), "menus");
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs