parent
48adce79f4
commit
3c4fb5395a
|
@ -88,6 +88,9 @@ static char *_desklock_auth_get_current_user(void);
|
||||||
static char *_desklock_auth_get_current_host(void);
|
static char *_desklock_auth_get_current_host(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EAPI int E_EVENT_DESKLOCK_SHOW = 0;
|
||||||
|
EAPI int E_EVENT_DESKLOCK_HIDE = 0;
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
e_desklock_init(void)
|
e_desklock_init(void)
|
||||||
{
|
{
|
||||||
|
@ -98,6 +101,9 @@ e_desklock_init(void)
|
||||||
if (e_config->desklock_background)
|
if (e_config->desklock_background)
|
||||||
e_filereg_register(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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,12 +345,13 @@ e_desklock_show(void)
|
||||||
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_WHEEL,
|
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_WHEEL,
|
||||||
_e_desklock_cb_mouse_wheel,
|
_e_desklock_cb_mouse_wheel,
|
||||||
NULL));
|
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,
|
edd->handlers = evas_list_append(edd->handlers,
|
||||||
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_MOVE,
|
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_MOVE,
|
||||||
_e_desklock_cb_mouse_move,
|
_e_desklock_cb_mouse_move,
|
||||||
NULL));
|
NULL));
|
||||||
_e_desklock_passwd_update();
|
_e_desklock_passwd_update();
|
||||||
|
ecore_event_add(E_EVENT_DESKLOCK_SHOW, NULL, NULL, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,6 +400,7 @@ e_desklock_hide(void)
|
||||||
|
|
||||||
E_FREE(edd);
|
E_FREE(edd);
|
||||||
edd = NULL;
|
edd = NULL;
|
||||||
|
ecore_event_add(E_EVENT_DESKLOCK_HIDE, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -9,5 +9,8 @@ EAPI int e_desklock_shutdown(void);
|
||||||
EAPI int e_desklock_show(void);
|
EAPI int e_desklock_show(void);
|
||||||
EAPI void e_desklock_hide(void);
|
EAPI void e_desklock_hide(void);
|
||||||
|
|
||||||
|
extern EAPI int E_EVENT_DESKLOCK_SHOW;
|
||||||
|
extern EAPI int E_EVENT_DESKLOCK_HIDE;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue