get rid of ecore warning

SVN revision: 14338
This commit is contained in:
Carsten Haitzler 2005-04-25 05:58:45 +00:00
parent 179c017b8f
commit bdbf2f2079
3 changed files with 19 additions and 5 deletions

View File

@ -21,4 +21,16 @@ e_bindings_shutdown(void)
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 */

View File

@ -5,9 +5,10 @@
typedef enum _E_Binding_Context
{
E_BINDING_CONTEXT_NONE,
E_BINDING_CONTEXT_UNKOWN,
E_BINDING_CONTEXT_BORDER,
E_BINDING_CONTEXT_ZONE,
E_BINDING_CONTEXT_OTHER
E_BINDING_CONTEXT_ZONE
} E_Binding_Context;
#else
@ -17,7 +18,8 @@ typedef enum _E_Binding_Context
EAPI int e_bindings_init(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

View File

@ -786,7 +786,7 @@ _battery_linux_acpi_check(Battery *ef)
/* Read some information on first run. */
bats = ecore_file_ls("/proc/acpi/battery");
while ((name = ecore_list_next(bats)))
while ((bats) && (name = ecore_list_next(bats)))
{
FILE *f;
@ -849,7 +849,7 @@ _battery_linux_acpi_check(Battery *ef)
}
free(name);
}
ecore_list_destroy(bats);
if (bats) ecore_list_destroy(bats);
if (ef->battery_prev_drain < 1) ef->battery_prev_drain = 1;
if (bat_drain < 1) bat_drain = ef->battery_prev_drain;