use EINA_UNUSED
This commit is contained in:
parent
5521c33757
commit
2d55e0056b
|
@ -10,18 +10,18 @@ struct _E_Config_Dialog_Data
|
|||
|
||||
/* Protos */
|
||||
static void *_create_data(E_Config_Dialog *cfd);
|
||||
static void _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
static void _free_data(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
|
||||
|
||||
static void
|
||||
_cb_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
||||
_cb_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
e_config_dialog_changed_set(data, EINA_TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
_cb_time_check_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
||||
_cb_time_check_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = ((E_Config_Dialog *)data)->cfdata;
|
||||
elm_widget_disabled_set(cfdata->time_entry, !cfdata->show_time);
|
||||
|
@ -29,7 +29,7 @@ _cb_time_check_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_date_check_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
||||
_cb_date_check_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = ((E_Config_Dialog *)data)->cfdata;
|
||||
elm_widget_disabled_set(cfdata->date_entry, !cfdata->show_date);
|
||||
|
@ -37,7 +37,7 @@ _cb_date_check_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_tip_check_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
|
||||
_cb_tip_check_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata = ((E_Config_Dialog *)data)->cfdata;
|
||||
elm_widget_disabled_set(cfdata->tip_entry, !cfdata->show_tip);
|
||||
|
@ -93,7 +93,7 @@ _create_data(E_Config_Dialog *cfd)
|
|||
}
|
||||
|
||||
static void
|
||||
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
_free_data(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
if (!tclock_config) return;
|
||||
tclock_config->cfd = NULL;
|
||||
|
|
|
@ -17,18 +17,18 @@
|
|||
/* Func Proto Requirements for Gadcon */
|
||||
static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style);
|
||||
static void _gc_shutdown(E_Gadcon_Client *gcc);
|
||||
static void _gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient __UNUSED__);
|
||||
static const char *_gc_label(const E_Gadcon_Client_Class *client_class __UNUSED__);
|
||||
static Evas_Object *_gc_icon(const E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas);
|
||||
static const char *_gc_id_new(const E_Gadcon_Client_Class *client_class __UNUSED__);
|
||||
static void _gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient EINA_UNUSED);
|
||||
static const char *_gc_label(const E_Gadcon_Client_Class *client_class EINA_UNUSED);
|
||||
static Evas_Object *_gc_icon(const E_Gadcon_Client_Class *client_class EINA_UNUSED, Evas *evas);
|
||||
static const char *_gc_id_new(const E_Gadcon_Client_Class *client_class EINA_UNUSED);
|
||||
|
||||
/* Module Protos */
|
||||
static void _tclock_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info);
|
||||
static void _tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__);
|
||||
static void _tclock_cb_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__);
|
||||
static void _tclock_menu_cb_configure(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi __UNUSED__);
|
||||
static void _tclock_menu_cb_post(void *data __UNUSED__, E_Menu *m __UNUSED__);
|
||||
static Eina_Bool _tclock_cb_check(void *data __UNUSED__);
|
||||
static void _tclock_cb_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info);
|
||||
static void _tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
||||
static void _tclock_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
|
||||
static void _tclock_menu_cb_configure(void *data, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EINA_UNUSED);
|
||||
static void _tclock_menu_cb_post(void *data EINA_UNUSED, E_Menu *m EINA_UNUSED);
|
||||
static Eina_Bool _tclock_cb_check(void *data EINA_UNUSED);
|
||||
static Config_Item *_tclock_config_item_get(const char *id);
|
||||
|
||||
static E_Config_DD *conf_edd = NULL;
|
||||
|
@ -129,7 +129,7 @@ _gc_shutdown(E_Gadcon_Client *gcc)
|
|||
}
|
||||
|
||||
static void
|
||||
_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient __UNUSED__)
|
||||
_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient EINA_UNUSED)
|
||||
{
|
||||
Instance *inst;
|
||||
Evas_Coord mw;
|
||||
|
@ -142,13 +142,13 @@ _gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient __UNUSED__)
|
|||
}
|
||||
|
||||
static const char *
|
||||
_gc_label(const E_Gadcon_Client_Class *client_class __UNUSED__)
|
||||
_gc_label(const E_Gadcon_Client_Class *client_class EINA_UNUSED)
|
||||
{
|
||||
return D_("TClock");
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_gc_icon(const E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas)
|
||||
_gc_icon(const E_Gadcon_Client_Class *client_class EINA_UNUSED, Evas *evas)
|
||||
{
|
||||
Evas_Object *o;
|
||||
char buf[PATH_MAX];
|
||||
|
@ -160,13 +160,13 @@ _gc_icon(const E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas)
|
|||
}
|
||||
|
||||
static const char *
|
||||
_gc_id_new(const E_Gadcon_Client_Class *client_class __UNUSED__)
|
||||
_gc_id_new(const E_Gadcon_Client_Class *client_class EINA_UNUSED)
|
||||
{
|
||||
return _tclock_config_item_get(NULL)->id;
|
||||
}
|
||||
|
||||
static void
|
||||
_tclock_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
|
||||
_tclock_cb_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Instance *inst;
|
||||
Evas_Event_Mouse_Down *ev;
|
||||
|
@ -198,7 +198,7 @@ _tclock_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED_
|
|||
}
|
||||
|
||||
static void
|
||||
_tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
_tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Instance *inst = NULL;
|
||||
char buf[1024];
|
||||
|
@ -222,7 +222,7 @@ _tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *even
|
|||
}
|
||||
|
||||
static void
|
||||
_tclock_cb_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
_tclock_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Instance *inst = NULL;
|
||||
if (!(inst = data) || !inst->tip)
|
||||
|
@ -234,7 +234,7 @@ _tclock_cb_mouse_out(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__
|
|||
}
|
||||
|
||||
static void
|
||||
_tclock_menu_cb_post(void *data __UNUSED__, E_Menu *m __UNUSED__)
|
||||
_tclock_menu_cb_post(void *data EINA_UNUSED, E_Menu *m EINA_UNUSED)
|
||||
{
|
||||
if (!tclock_config->menu)
|
||||
return;
|
||||
|
@ -243,7 +243,7 @@ _tclock_menu_cb_post(void *data __UNUSED__, E_Menu *m __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_tclock_menu_cb_configure(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi __UNUSED__)
|
||||
_tclock_menu_cb_configure(void *data, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EINA_UNUSED)
|
||||
{
|
||||
Instance *inst = NULL;
|
||||
if (!(inst = data))
|
||||
|
@ -282,7 +282,7 @@ _tclock_config_updated(Config_Item *ci)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_tclock_cb_check(void *data __UNUSED__)
|
||||
_tclock_cb_check(void *data EINA_UNUSED)
|
||||
{
|
||||
Eina_List *l;
|
||||
Instance *inst;
|
||||
|
@ -432,7 +432,7 @@ e_modapi_init(E_Module *m)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_shutdown(E_Module *m __UNUSED__)
|
||||
e_modapi_shutdown(E_Module *m EINA_UNUSED)
|
||||
{
|
||||
Config_Item *ci;
|
||||
|
||||
|
@ -468,7 +468,7 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
|
|||
}
|
||||
|
||||
EAPI int
|
||||
e_modapi_save(E_Module *m __UNUSED__)
|
||||
e_modapi_save(E_Module *m EINA_UNUSED)
|
||||
{
|
||||
e_config_domain_save("module.tclock", conf_edd, tclock_config);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue