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:
Single event for show/hide desktop.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- e_desklock.c 28 May 2007 11:08:36 -0000 1.40
+++ e_desklock.c 28 May 2007 11:15:04 -0000 1.41
@@ -88,8 +88,7 @@
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_EVENT_DESKLOCK = 0;
EAPI int
e_desklock_init(void)
@@ -101,8 +100,7 @@
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();
+ E_EVENT_DESKLOCK = ecore_event_type_new();
return 1;
}
@@ -126,6 +124,7 @@
E_Zone *current_zone;
int zone_counter;
int total_zone_num;
+ E_Event_Desklock *ev;
if (_e_custom_desklock_exe) return 0;
@@ -351,7 +350,10 @@
_e_desklock_cb_mouse_move,
NULL));
_e_desklock_passwd_update();
- ecore_event_add(E_EVENT_DESKLOCK_SHOW, NULL, NULL, NULL);
+
+ ev = E_NEW(E_Event_Desklock, 1);
+ ev->on = 1;
+ ecore_event_add(E_EVENT_DESKLOCK, ev, NULL, NULL);
return 1;
}
@@ -359,6 +361,7 @@
e_desklock_hide(void)
{
E_Desklock_Popup_Data *edp;
+ E_Event_Desklock *ev;
if ((!edd) && (!_e_custom_desklock_exe)) return;
@@ -400,7 +403,10 @@
E_FREE(edd);
edd = NULL;
- ecore_event_add(E_EVENT_DESKLOCK_HIDE, NULL, NULL, NULL);
+
+ ev = E_NEW(E_Event_Desklock, 1);
+ ev->on = 0;
+ ecore_event_add(E_EVENT_DESKLOCK, ev, NULL, NULL);
}
static int
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_desklock.h 28 May 2007 11:08:36 -0000 1.4
+++ e_desklock.h 28 May 2007 11:15:04 -0000 1.5
@@ -1,16 +1,23 @@
#ifdef E_TYPEDEFS
+
+typedef struct _E_Event_Desklock E_Event_Desklock;
+
#else
#ifndef E_DESKLOCK_H
#define E_DESKLOCK_H
+struct _E_Event_Desklock
+{
+ int on;
+};
+
EAPI int e_desklock_init(void);
EAPI int e_desklock_shutdown(void);
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;
+extern EAPI int E_EVENT_DESKLOCK;
#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