Enlightenment CVS committal
Author : jeoparde
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/src/client
Modified Files:
entrance.h main.c
Log Message:
- Testing mode should not be default.
- Make reboot/shutdown callbacks use the shutdown command instead of
directly invoking init.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- entrance.h 25 Jul 2003 05:20:02 -0000 1.3
+++ entrance.h 26 Jul 2003 15:15:01 -0000 1.4
@@ -11,6 +11,6 @@
#include "util.h"
#include "entrance_session.h"
-#define X_TESTING 1
+#define X_TESTING 0
#endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- main.c 25 Jul 2003 14:51:46 -0000 1.5
+++ main.c 26 Jul 2003 15:15:01 -0000 1.6
@@ -364,7 +364,7 @@
{
if(session->config->reboot.allow)
{
- execl("/bin/sh", "/bin/sh", "-c", "init" "6", NULL);
+ execl("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown" "-r", "now", "This system
is going down for reboot NOW!", NULL);
}
}
@@ -383,7 +383,7 @@
{
if(session->config->halt.allow)
{
- execl("/bin/sh", "/bin/sh", "-c", "init" "0", NULL);
+ execl("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown" "-h", "now", "This system
is being shut down NOW!", NULL);
}
}
@@ -411,6 +411,7 @@
int i = 0;
char buf[PATH_MAX];
char *str = NULL;
+ Ecore_X_Window ew;
Evas *evas = NULL;
Ecore_Evas *e = NULL;
Ecore_Timer *timer = NULL;
@@ -444,8 +445,10 @@
edje_frametime_set(1.0/60.0);
/* setup our ecore_evas */
+ /* testing mode decides entrance window size */
e = ecore_evas_software_x11_new(NULL, 0, 0, 0, WINW, WINH);
- ecore_evas_title_set(e, "Entrance --(Edje)--");
+ ew = ecore_evas_software_x11_window_get(e);
+ ecore_evas_title_set(e, "Entrance");
ecore_evas_callback_delete_request_set(e, window_del_cb);
ecore_evas_callback_resize_set(e, window_resize_cb);
ecore_evas_cursor_set(e, session->config->pointer, 12, 0, 0);
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs