From: Sebastian Dransfeld Date: Mon, 28 May 2007 11:08:36 +0000 (+0000) Subject: Add desklock show/hide event. X-Git-Tag: submit/efl/20131021.015651~11557 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c4fb5395af84da1519385320fdd4acce5d9d67f;p=platform%2Fupstream%2Fenlightenment.git Add desklock show/hide event. SVN revision: 30125 --- diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c index 1a4365a..57b0f3d 100644 --- a/src/bin/e_desklock.c +++ b/src/bin/e_desklock.c @@ -88,6 +88,9 @@ static char *_desklock_auth_get_current_user(void); 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 @@ e_desklock_init(void) 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 @@ e_desklock_show(void) 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_desklock_hide(void) E_FREE(edd); edd = NULL; + ecore_event_add(E_EVENT_DESKLOCK_HIDE, NULL, NULL, NULL); } static int diff --git a/src/bin/e_desklock.h b/src/bin/e_desklock.h index 69ce3c0..7cc0ac4 100644 --- a/src/bin/e_desklock.h +++ b/src/bin/e_desklock.h @@ -9,5 +9,8 @@ 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; + #endif #endif