parent
179c017b8f
commit
bdbf2f2079
|
@ -21,4 +21,16 @@ e_bindings_shutdown(void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Down *ev)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Down *ev)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* local subsystem functions */
|
/* local subsystem functions */
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
typedef enum _E_Binding_Context
|
typedef enum _E_Binding_Context
|
||||||
{
|
{
|
||||||
|
E_BINDING_CONTEXT_NONE,
|
||||||
|
E_BINDING_CONTEXT_UNKOWN,
|
||||||
E_BINDING_CONTEXT_BORDER,
|
E_BINDING_CONTEXT_BORDER,
|
||||||
E_BINDING_CONTEXT_ZONE,
|
E_BINDING_CONTEXT_ZONE
|
||||||
E_BINDING_CONTEXT_OTHER
|
|
||||||
} E_Binding_Context;
|
} E_Binding_Context;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -17,7 +18,8 @@ typedef enum _E_Binding_Context
|
||||||
EAPI int e_bindings_init(void);
|
EAPI int e_bindings_init(void);
|
||||||
EAPI int e_bindings_shutdown(void);
|
EAPI int e_bindings_shutdown(void);
|
||||||
|
|
||||||
//EAPI void e_bindings_key_event_handle(E_Binding_Context context, E_Object *obj, char *key); /* finxish... */
|
EAPI int e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Down *ev);
|
||||||
|
EAPI int e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Down *ev);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -786,7 +786,7 @@ _battery_linux_acpi_check(Battery *ef)
|
||||||
|
|
||||||
/* Read some information on first run. */
|
/* Read some information on first run. */
|
||||||
bats = ecore_file_ls("/proc/acpi/battery");
|
bats = ecore_file_ls("/proc/acpi/battery");
|
||||||
while ((name = ecore_list_next(bats)))
|
while ((bats) && (name = ecore_list_next(bats)))
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
|
@ -849,7 +849,7 @@ _battery_linux_acpi_check(Battery *ef)
|
||||||
}
|
}
|
||||||
free(name);
|
free(name);
|
||||||
}
|
}
|
||||||
ecore_list_destroy(bats);
|
if (bats) ecore_list_destroy(bats);
|
||||||
|
|
||||||
if (ef->battery_prev_drain < 1) ef->battery_prev_drain = 1;
|
if (ef->battery_prev_drain < 1) ef->battery_prev_drain = 1;
|
||||||
if (bat_drain < 1) bat_drain = ef->battery_prev_drain;
|
if (bat_drain < 1) bat_drain = ef->battery_prev_drain;
|
||||||
|
|
Loading…
Reference in New Issue