Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/src/client
Modified Files:
main.c
Log Message:
Update the theme documentation so it's more upto date and correct
Also automatically focus in on EntranceUserEntry so themers can omit
input focus entirely if they want to.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- main.c 25 Jul 2003 06:06:41 -0000 1.4
+++ main.c 25 Jul 2003 14:51:46 -0000 1.5
@@ -2,7 +2,7 @@
* Corey Donohoe <[EMAIL PROTECTED]>
* filename: main.c
* Project: Entrance
- * July 11, 2003
+ * July 24, 2003
*
* Themes are edjes(eet files) and work like this:
* 1. A Parts Collection Must be Present, Titled "main"
@@ -11,13 +11,9 @@
* -------------------------------------------------------------------------
* | Key(state1, state2, ... , staten) | Type | Required |
* -------------------------------------------------------------------------
- * | EntrancePassMessage | TEXT | Yes |
+ * | EntrancePassEntry(default) | TEXT | Yes |
* -------------------------------------------------------------------------
- * | EntranceUserMessage | TEXT | Yes |
- * -------------------------------------------------------------------------
- * | EntrancePassEntry | TEXT | Yes |
- * -------------------------------------------------------------------------
- * | EntranceUserEntry | TEXT | Yes |
+ * | EntranceUserEntry(default) | TEXT | Yes |
* -------------------------------------------------------------------------
* | EntranceDate(default) | TEXT | No |
* -------------------------------------------------------------------------
@@ -25,37 +21,56 @@
* -------------------------------------------------------------------------
* | EntranceHostname(default) | TEXT | No |
* -------------------------------------------------------------------------
- * | EntranceSession (default, foo, bar) | TEXT | No |
+ * | EntranceSession (default, E, KDE, Gnome) | TEXT | No |
* -------------------------------------------------------------------------
*
- * 3. The following signals need to be defined in programs.
- * -------------------------------------------------------------------------
- * | Signal | Type | Req
+ * 3. The following signals are emitted by entrance and need to be caught in
+ * programs.
* -------------------------------------------------------------------------
- * | EntranceUserAuthSuccess | SIGNAL_EMIT | Yes
- * | | "EntranceUserAuthSuccessDone" "" |
+ * | Signal | Description | Req
* -------------------------------------------------------------------------
- * | EntranceUserFail | | No
+ * | EntranceUserAuthSuccess | After successful authentication this |
+ * | | signal is emitted, you can do your own|
+ * | | animation here if you want. You must |
+ * | | emit "EntranceUserAuthSuccessDone" "" |
+ * | | after it though in order for |
+ * | | entrance to start your x session |
+ * | |"EntranceUserAuthSuccessDone" "" | Yes
+ * -------------------------------------------------------------------------
+ * | EntranceUserFail | When the user is unknown the system | No
+ * -------------------------------------------------------------------------
+ * | EntranceUserAuthFail | When a user fails a login attempted | No
+ * -------------------------------------------------------------------------
+ * | EntranceUserAuth | When the user is known to the system, |
+ * | | it's time to prompt for their password|
+ * | | | No
* -------------------------------------------------------------------------
- * | EntranceUserAuthFail | | No
- * -------------------------------------------------------------------------
- * | EntranceUserAuth | Theme Specific | No
+ *
+ * 4. The following signals can be emitted by your application in order
+ * to change states in entrance
* -------------------------------------------------------------------------
- * | EntranceInputUserFocusIn | SIGNAL_EMIT "In" "EntranceUserEntry" | Yes
+ * | Signal | Source | Req
* -------------------------------------------------------------------------
- * | EntranceInputUserFocusOut | SIGNAL_EMIT "Out" "EntranceUserEntry" | Yes
+ * | "In" | Either EntranceUserEntry or |
+ * | | EntrancePassEntry depending on which |
+ * | | you'd like focus on. | No
* -------------------------------------------------------------------------
- * | EntranceInputPassFocusIn | SIGNAL_EMIT "In" "EntrancePassEntry" | Yes
+ * | "Out" | Either EntranceUserEntry or |
+ * | | EntrancePassEntry depending on which |
+ * | | you'd like to take focus away from. | No
* -------------------------------------------------------------------------
- * | EntranceInputPassFocusOut | SIGNAL_EMIT "Out" "EntrancePassEntry" | Yes
+ * | EntranceSystemReboot | When the system request being rebooted|
+ * | | Source should be "" | No
* -------------------------------------------------------------------------
- * | EntranceSystemReboot | | No
+ * | EntranceSystemHalt | When the system requests being halted |
+ * | | Source should be "" | No
* -------------------------------------------------------------------------
- * | EntranceSystemHalt | | No
+ * | EntranceUserAuthSuccessDone| When the theme has completed its post |
+ * | | auth animation. |
+ * | | Source should be "" |Yes
* -------------------------------------------------------------------------
- *
*/
-#include<time.h>
+#include <time.h>
#include "entrance.h"
#include "entrance_session.h"
#include "EvasTextEntry.h"
@@ -65,7 +80,7 @@
static Entrance_Session session = NULL;
-/* Callbacks for shit */
+/* Callbacks for entrance */
static char *
get_my_hostname(void)
{
@@ -519,6 +534,8 @@
* the desired events
*/
evas_object_show(edje);
+ /* set focus to user input */
+ edje_object_signal_emit(edje, "In", "EntranceUserEntry");
#if (X_TESTING == 0)
ecore_evas_fullscreen_set(e, 1);
-------------------------------------------------------
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