forked from enlightenment/enlightenment
parent
5a4d761c88
commit
65a08d98fe
|
@ -47,6 +47,8 @@ static Eina_Bool _e_bl_cb_exit(void *data __UNUSED__, int type __UNUSED__, void
|
||||||
static void _bl_sys_level_set(double val);
|
static void _bl_sys_level_set(double val);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EAPI int E_EVENT_BACKLIGHT_CHANGE = -1;
|
||||||
|
|
||||||
EINTERN int
|
EINTERN int
|
||||||
e_backlight_init(void)
|
e_backlight_init(void)
|
||||||
{
|
{
|
||||||
|
@ -91,6 +93,9 @@ e_backlight_init(void)
|
||||||
e_backlight_level_set(NULL, e_config->backlight.normal, 1.0);
|
e_backlight_level_set(NULL, e_config->backlight.normal, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
E_EVENT_BACKLIGHT_CHANGE = ecore_event_type_new();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +236,7 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
|
||||||
bl_val = val;
|
bl_val = val;
|
||||||
if (e_config->backlight.mode != E_BACKLIGHT_MODE_NORMAL) return;
|
if (e_config->backlight.mode != E_BACKLIGHT_MODE_NORMAL) return;
|
||||||
if (tim < 0.0) tim = e_config->backlight.transition;
|
if (tim < 0.0) tim = e_config->backlight.transition;
|
||||||
|
ecore_event_add(E_EVENT_BACKLIGHT_CHANGE, NULL, NULL, NULL);
|
||||||
if (tim == 0.0)
|
if (tim == 0.0)
|
||||||
{
|
{
|
||||||
if (bl_anim)
|
if (bl_anim)
|
||||||
|
|
|
@ -18,6 +18,8 @@ typedef enum _E_Backlight_Mode
|
||||||
#ifndef E_BACKLIGHT_H
|
#ifndef E_BACKLIGHT_H
|
||||||
#define E_BACKLIGHT_H
|
#define E_BACKLIGHT_H
|
||||||
|
|
||||||
|
extern EAPI int E_EVENT_BACKLIGHT_CHANGE;
|
||||||
|
|
||||||
//struct _E_Screen
|
//struct _E_Screen
|
||||||
//{
|
//{
|
||||||
// int screen, escreen;
|
// int screen, escreen;
|
||||||
|
|
Loading…
Reference in New Issue