Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_desklock.c e_desklock.h
Log Message:
Add desklock show/hide event.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- e_desklock.c 4 May 2007 16:21:53 -0000 1.39
+++ e_desklock.c 28 May 2007 11:08:36 -0000 1.40
@@ -88,6 +88,9 @@
static char *_desklock_auth_get_current_host(void);
#endif
+EAPI int E_EVENT_DESKLOCK_SHOW = 0;
+EAPI int E_EVENT_DESKLOCK_HIDE = 0;
+
EAPI int
e_desklock_init(void)
{
@@ -98,6 +101,9 @@
if (e_config->desklock_background)
e_filereg_register(e_config->desklock_background);
+ E_EVENT_DESKLOCK_SHOW = ecore_event_type_new();
+ E_EVENT_DESKLOCK_HIDE = ecore_event_type_new();
+
return 1;
}
@@ -339,12 +345,13 @@
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_WHEEL,
_e_desklock_cb_mouse_wheel,
NULL));
- if (total_zone_num > 1 && e_config->desklock_login_box_zone == -2 )
+ if ((total_zone_num > 1) && (e_config->desklock_login_box_zone == -2))
edd->handlers = evas_list_append(edd->handlers,
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_MOVE,
_e_desklock_cb_mouse_move,
NULL));
_e_desklock_passwd_update();
+ ecore_event_add(E_EVENT_DESKLOCK_SHOW, NULL, NULL, NULL);
return 1;
}
@@ -393,6 +400,7 @@
E_FREE(edd);
edd = NULL;
+ ecore_event_add(E_EVENT_DESKLOCK_HIDE, NULL, NULL, NULL);
}
static int
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_desklock.h 18 Apr 2006 03:14:29 -0000 1.3
+++ e_desklock.h 28 May 2007 11:08:36 -0000 1.4
@@ -9,5 +9,8 @@
EAPI int e_desklock_show(void);
EAPI void e_desklock_hide(void);
+extern EAPI int E_EVENT_DESKLOCK_SHOW;
+extern EAPI int E_EVENT_DESKLOCK_HIDE;
+
#endif
#endif
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs