prefix EINA_UNUSED parameters with an underscore

and fix related issues
devs/discomfitor/focus
Boris Faure 6 years ago
parent a2bedb6281
commit 76f1bf4342
  1. 7
      src/bin/about.c
  2. 2
      src/bin/config.c
  3. 74
      src/bin/controls.c
  4. 6
      src/bin/gravatar.c
  5. 4
      src/bin/ipc.c
  6. 2
      src/bin/keyin.c
  7. 10
      src/bin/main.c
  8. 112
      src/bin/media.c
  9. 36
      src/bin/miniview.c
  10. 23
      src/bin/options.c
  11. 23
      src/bin/options_behavior.c
  12. 21
      src/bin/options_colors.c
  13. 8
      src/bin/options_elm.c
  14. 41
      src/bin/options_font.c
  15. 32
      src/bin/options_helpers.c
  16. 69
      src/bin/options_keys.c
  17. 8
      src/bin/options_theme.c
  18. 5
      src/bin/options_themepv.c
  19. 20
      src/bin/options_video.c
  20. 29
      src/bin/options_wallpaper.c
  21. 29
      src/bin/sel.c
  22. 21
      src/bin/termcmd.c
  23. 201
      src/bin/termio.c
  24. 5
      src/bin/termiolink.c
  25. 4
      src/bin/termpty.c
  26. 8
      src/bin/termptyesc.c
  27. 4
      src/bin/termptyext.c
  28. 5
      src/bin/utils.c
  29. 266
      src/bin/win.c

@ -14,7 +14,7 @@ static void (*ab_donecb) (void *data) = NULL;
static void *ab_donedata = NULL;
static Eina_Bool
_cb_ab_del_delay(void *data EINA_UNUSED)
_cb_ab_del_delay(void *_data EINA_UNUSED)
{
evas_object_del(ab_layout);
ab_layout = NULL;
@ -24,7 +24,10 @@ _cb_ab_del_delay(void *data EINA_UNUSED)
}
static void
_cb_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_mouse_down(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_ev EINA_UNUSED)
{
about_toggle(saved_win, saved_bg, data, ab_donecb, ab_donedata);
}

@ -771,7 +771,7 @@ config_theme_path_get(const Config *config)
}
const char *
config_theme_path_default_get(const Config *config EINA_UNUSED)
config_theme_path_default_get(const Config *config)
{
static char path[PATH_MAX] = "";

@ -16,7 +16,9 @@ static void (*ct_donecb) (void *data) = NULL;
static void *ct_donedata = NULL;
static void
_cb_sel_on(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_UNUSED)
_cb_sel_on(void *_data EINA_UNUSED,
Evas_Object *_term EINA_UNUSED,
void *_ev EINA_UNUSED)
{
Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy");
if (bt_copy)
@ -24,7 +26,9 @@ _cb_sel_on(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_
}
static void
_cb_sel_off(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_UNUSED)
_cb_sel_off(void *_data EINA_UNUSED,
Evas_Object *_term EINA_UNUSED,
void *_ev EINA_UNUSED)
{
Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy");
if (bt_copy)
@ -32,7 +36,7 @@ _cb_sel_off(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA
}
static Eina_Bool
_cb_ct_del_delay(void *data EINA_UNUSED)
_cb_ct_del_delay(void *_data EINA_UNUSED)
{
if (ct_over)
{
@ -50,81 +54,103 @@ _cb_ct_del_delay(void *data EINA_UNUSED)
}
static void
_cb_ct_copy(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
_cb_ct_copy(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
termio_take_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD);
controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
}
static void
_cb_ct_paste(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
_cb_ct_paste(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
termio_paste_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD);
controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
}
static void
_cb_ct_new(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_new(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
main_new(ct_win, ct_term);
}
static void
_cb_ct_split_v(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_split_v(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
split_vertically(ct_win, ct_term, NULL);
}
static void
_cb_ct_split_h(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_split_h(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
split_horizontally(ct_win, ct_term, NULL);
}
static void
_cb_ct_miniview(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_miniview(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
term_miniview_toggle(termio_term_get(ct_term));
}
static void
_cb_ct_set_title(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_set_title(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
term_set_title(termio_term_get(ct_term));
}
static void
_cb_ct_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_close(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
term_close(ct_win, ct_term, EINA_FALSE);
}
static void
_cb_ct_options(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_options(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
options_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
}
static void
_cb_ct_about(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_ct_about(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
about_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
}
static void
_cb_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_mouse_down(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_ev EINA_UNUSED)
{
controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
}
static void
_cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_frame_del(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_ev EINA_UNUSED)
{
if (ct_win)
{
@ -135,13 +161,19 @@ _cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA
}
static void
_cb_over_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_over_del(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_ev EINA_UNUSED)
{
ct_over = NULL;
}
static void
_cb_saved_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_saved_del(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *obj,
void *_ev EINA_UNUSED)
{
if ((obj == ct_win) || (obj == ct_term))
{

@ -34,7 +34,7 @@ typedef struct _Gravatar {
static Evas_Object *
_tooltip_content(void *data,
Evas_Object *obj,
Evas_Object *tt EINA_UNUSED)
Evas_Object *_tt EINA_UNUSED)
{
Gravatar *g = data;
Evas_Object *o;
@ -47,8 +47,8 @@ _tooltip_content(void *data,
static void
_tooltip_del(void *data,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
Gravatar *g = data;
eina_stringshare_del(g->url);

@ -11,7 +11,9 @@ static void (*func_new_inst) (Ipc_Instance *inst) = NULL;
static Eet_Data_Descriptor *new_inst_edd = NULL;
static Eina_Bool
_ipc_cb_client_data(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
_ipc_cb_client_data(void *_data EINA_UNUSED,
int _type EINA_UNUSED,
void *event)
{
Ecore_Ipc_Event_Client_Data *e = event;

@ -689,7 +689,7 @@ shortcut_actions_get(void)
/* {{{ Key bindings */
static unsigned int
_key_binding_key_length(EINA_UNUSED const void *key)
_key_binding_key_length(const void *_key EINA_UNUSED)
{
return 0;
}

@ -439,13 +439,13 @@ _translate_options(void)
#ifdef ENABLE_FUZZING
#include <syslog.h>
static void
_log_to_syslog(const Eina_Log_Domain *d EINA_UNUSED,
_log_to_syslog(const Eina_Log_Domain *_d EINA_UNUSED,
Eina_Log_Level level,
const char *file EINA_UNUSED,
const char *fnc EINA_UNUSED,
int line EINA_UNUSED,
const char *_file EINA_UNUSED,
const char *_fnc EINA_UNUSED,
int _line EINA_UNUSED,
const char *fmt,
void *data EINA_UNUSED,
void *_data EINA_UNUSED,
va_list args)
{
int priority;

@ -75,7 +75,7 @@ static void _et_init(void);
static int _type_thumb_init2(Evas_Object *obj);
static void
_et_disconnect(void *data EINA_UNUSED, Ethumb_Client *c)
_et_disconnect(void *_data EINA_UNUSED, Ethumb_Client *c)
{
if (c != et_client) return;
ethumb_client_disconnect(et_client);
@ -85,7 +85,7 @@ _et_disconnect(void *data EINA_UNUSED, Ethumb_Client *c)
}
static void
_et_connect(void *data EINA_UNUSED, Ethumb_Client *c, Eina_Bool ok)
_et_connect(void *_data EINA_UNUSED, Ethumb_Client *c, Eina_Bool ok)
{
if (ok)
{
@ -148,7 +148,10 @@ _type_thumb_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Eva
}
static void
_cb_thumb_preloaded(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_thumb_preloaded(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
Evas_Coord ox, oy, ow, oh;
@ -161,7 +164,8 @@ _cb_thumb_preloaded(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSE
}
static void
_et_done(Ethumb_Client *c EINA_UNUSED, const char *file, const char *key, void *data)
_et_done(Ethumb_Client *_c EINA_UNUSED,
const char *file, const char *key, void *data)
{
Evas_Object *obj = data;
Media *sd = evas_object_smart_data_get(obj);
@ -177,7 +181,7 @@ _et_done(Ethumb_Client *c EINA_UNUSED, const char *file, const char *key, void *
}
static void
_et_error(Ethumb_Client *c EINA_UNUSED, void *data)
_et_error(Ethumb_Client *_c EINA_UNUSED, void *data)
{
Evas_Object *obj = data;
Media *sd = evas_object_smart_data_get(obj);
@ -267,7 +271,10 @@ _type_thumb_init(Evas_Object *obj)
//////////////////////// img
static void
_cb_img_preloaded(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_img_preloaded(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -410,7 +417,10 @@ _type_img_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_
//////////////////////// scalable img
static void
_cb_scale_preloaded(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_scale_preloaded(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -533,7 +543,10 @@ _type_scale_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Eva
//////////////////////// edj
static void
_cb_edje_preloaded(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
_cb_edje_preloaded(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_sig EINA_UNUSED,
const char *_src EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -587,7 +600,9 @@ _type_edje_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas
static void _type_mov_calc(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
static void
_cb_mov_frame_decode(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_frame_decode(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
Evas_Coord ox, oy, ow, oh;
@ -607,7 +622,9 @@ _cb_mov_frame_decode(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_
}
static void
_cb_mov_frame_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_frame_resize(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
Evas_Coord ox, oy, ow, oh;
@ -618,7 +635,9 @@ _cb_mov_frame_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_
}
static void
_cb_mov_len_change(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_len_change(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -635,7 +654,9 @@ _cb_mov_restart(void *data)
}
static void
_cb_mov_decode_stop(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_decode_stop(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -645,7 +666,9 @@ _cb_mov_decode_stop(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_U
}
static void
_cb_mov_progress(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_progress(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -655,7 +678,9 @@ _cb_mov_progress(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUS
}
static void
_cb_mov_ref(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_mov_ref(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(data);
if (!sd) return;
@ -665,25 +690,37 @@ _cb_mov_ref(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
}
static void
_cb_media_play(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_play(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
media_play_set(data, EINA_TRUE);
}
static void
_cb_media_pause(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_pause(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
media_play_set(data, EINA_FALSE);
}
static void
_cb_media_stop(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_stop(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
media_stop(data);
}
static void
_cb_media_vol(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_vol(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
double vx, vy;
Media *sd = evas_object_smart_data_get(data);
@ -693,7 +730,10 @@ _cb_media_vol(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EIN
}
static void
_cb_media_pos_drag_start(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_pos_drag_start(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
double vx, vy;
Media *sd = evas_object_smart_data_get(data);
@ -702,8 +742,12 @@ _cb_media_pos_drag_start(void *data, Evas_Object *obj EINA_UNUSED, const char *e
edje_object_part_drag_value_get(sd->o_ctrl, "terminology.posdrag", &vx, &vy);
media_position_set(data, vx + vy);
}
static void
_cb_media_pos_drag_stop(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_pos_drag_stop(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
double pos, len;
Media *sd = evas_object_smart_data_get(data);
@ -714,8 +758,12 @@ _cb_media_pos_drag_stop(void *data, Evas_Object *obj EINA_UNUSED, const char *em
pos /= len;
edje_object_part_drag_value_set(sd->o_ctrl, "terminology.posdrag", pos, pos);
}
static void
_cb_media_pos(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
_cb_media_pos(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
double vx, vy;
Media *sd = evas_object_smart_data_get(data);
@ -1037,7 +1085,9 @@ _smart_calculate(Evas_Object *obj)
}
static void
_smart_move(Evas_Object *obj, Evas_Coord x EINA_UNUSED, Evas_Coord y EINA_UNUSED)
_smart_move(Evas_Object *obj,
Evas_Coord _x EINA_UNUSED,
Evas_Coord _y EINA_UNUSED)
{
Media *sd = evas_object_smart_data_get(obj);
if (!sd) return;
@ -1045,7 +1095,9 @@ _smart_move(Evas_Object *obj, Evas_Coord x EINA_UNUSED, Evas_Coord y EINA_UNUSED
}
static Eina_Bool
_url_prog_cb(void *data, int type EINA_UNUSED, void *event_info)
_url_prog_cb(void *data,
int _type EINA_UNUSED,
void *event_info)
{
Ecore_Con_Event_Url_Progress *ev = event_info;
Evas_Object *obj = data;
@ -1073,7 +1125,9 @@ _url_prog_cb(void *data, int type EINA_UNUSED, void *event_info)
}
static Eina_Bool
_url_compl_cb(void *data, int type EINA_UNUSED, void *event_info)
_url_compl_cb(void *data,
int _type EINA_UNUSED,
void *event_info)
{
Ecore_Con_Event_Url_Complete *ev = event_info;
Evas_Object *obj = data;
@ -1114,7 +1168,10 @@ _url_compl_cb(void *data, int type EINA_UNUSED, void *event_info)
}
static void
_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
_mouse_down_cb(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *event)
{
Evas_Event_Mouse_Down *ev = event;
Media *sd = evas_object_smart_data_get(data);
@ -1128,7 +1185,10 @@ _mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, vo
}
static void
_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
_mouse_up_cb(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *event)
{
Evas_Event_Mouse_Up *ev = event;
Media *sd = evas_object_smart_data_get(data);

@ -183,8 +183,10 @@ _queue_render(Miniview *mv)
}
static void
_smart_cb_mouse_wheel(void *data, Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED, void *event)
_smart_cb_mouse_wheel(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *event)
{
Evas_Event_Mouse_Wheel *ev = event;
Miniview *mv = evas_object_smart_data_get(data);
@ -307,8 +309,10 @@ miniview_handle_key(Evas_Object *obj, const Evas_Event_Key_Down *ev)
}
static void
_smart_cb_mouse_down(void *data, Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED, void *event)
_smart_cb_mouse_down(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *event)
{
Evas_Event_Mouse_Down *ev = event;
Miniview *mv= evas_object_smart_data_get(data);
@ -333,9 +337,10 @@ _smart_cb_mouse_down(void *data, Evas *e EINA_UNUSED,
}
static void
_on_screen_stoped(void *data, Evas_Object *o EINA_UNUSED,
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
_on_screen_stoped(void *data,
Evas_Object *_o EINA_UNUSED,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
Miniview *mv= evas_object_smart_data_get(data);
@ -346,8 +351,10 @@ _on_screen_stoped(void *data, Evas_Object *o EINA_UNUSED,
}
static void
_on_screen_moved(void *data, Evas_Object *o, const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
_on_screen_moved(void *data,
Evas_Object *o,
const char *_emission EINA_UNUSED,
const char *_source EINA_UNUSED)
{
Miniview *mv = evas_object_smart_data_get(data);
double val = 0.0, pos = 0.0, bottom_bound = 0.0;
@ -427,8 +434,9 @@ _do_configure(Evas_Object *obj)
}
static void
_smart_move(Evas_Object *obj, Evas_Coord x EINA_UNUSED,
Evas_Coord y EINA_UNUSED)
_smart_move(Evas_Object *obj,
Evas_Coord _x EINA_UNUSED,
Evas_Coord _y EINA_UNUSED)
{
Miniview *mv = evas_object_smart_data_get(obj);
@ -635,8 +643,10 @@ _smart_init(void)
}
static void
_cb_miniview_close(void *data, Evas_Object *obj EINA_UNUSED,
const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
_cb_miniview_close(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_sig EINA_UNUSED,
const char *_src EINA_UNUSED)
{
Miniview *mv = data;

@ -38,7 +38,9 @@ static enum option_mode {
} _mode = 0;
static void
_cb_op(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_op(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
enum option_mode mode = (intptr_t) data;
@ -48,14 +50,14 @@ _cb_op(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
}
static void
_cb_op_tmp_chg(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_op_tmp_chg(void *data, Evas_Object *obj, void *_event EINA_UNUSED)
{
Config *config = data;
config->temporary = elm_check_state_get(obj);
}
static Eina_Bool
_cb_op_del_delay(void *data EINA_UNUSED)
_cb_op_del_delay(void *_data EINA_UNUSED)
{
evas_object_del(op_opbox);
evas_object_del(op_frame);
@ -70,13 +72,19 @@ _cb_op_del_delay(void *data EINA_UNUSED)
}
static void
_cb_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
_cb_mouse_down(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_ev EINA_UNUSED)
{
options_toggle(saved_win, saved_bg, data, op_donecb, op_donedata);
}
static void
_cb_opdt_hide_done(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
_cb_opdt_hide_done(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_sig EINA_UNUSED,
const char *_src EINA_UNUSED)
{
elm_box_clear(op_opbox);
switch (_mode)
@ -96,7 +104,10 @@ _cb_opdt_hide_done(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EIN
}
static void
_cb_opdt_hide_done2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
_cb_opdt_hide_done2(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
const char *_sig EINA_UNUSED,
const char *_src EINA_UNUSED)
{
if (op_del_timer)
{

@ -12,7 +12,7 @@ static Evas_Object *op_w, *op_h;
#define CB(_cfg_name, _inv) \
static void \
_cb_op_behavior_##_cfg_name(void *data, Evas_Object *obj, \
void *event EINA_UNUSED) \
void *_event EINA_UNUSED) \
{ \
Evas_Object *term = data; \
Config *config = termio_config_get(term); \
@ -69,7 +69,9 @@ sback_units_format(double d)
}
static void
_cb_op_behavior_sback_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_behavior_sback_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -80,8 +82,9 @@ _cb_op_behavior_sback_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
}
static void
_cb_op_behavior_tab_zoom_slider_chg(void *data, Evas_Object *obj,
void *event EINA_UNUSED)
_cb_op_behavior_tab_zoom_slider_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -92,7 +95,9 @@ _cb_op_behavior_tab_zoom_slider_chg(void *data, Evas_Object *obj,
}
static void
_cb_op_behavior_custom_geometry(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_behavior_custom_geometry(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -110,7 +115,9 @@ _cb_op_behavior_custom_geometry(void *data, Evas_Object *obj, void *event EINA_U
}
static void
_cb_op_behavior_cg_width(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_behavior_cg_width(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -123,7 +130,9 @@ _cb_op_behavior_cg_width(void *data, Evas_Object *obj, void *event EINA_UNUSED)
}
static void
_cb_op_behavior_cg_height(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_behavior_cg_height(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);

@ -30,7 +30,9 @@ static Evas_Object *colpal[4] = { NULL };
static Evas_Object *label = NULL, *reset = NULL;
static void
_cb_op_use_custom_chg(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_use_custom_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -47,7 +49,9 @@ _cb_op_use_custom_chg(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA
}
static void
_cb_op_color_item_sel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
_cb_op_color_item_sel(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *event)
{
Elm_Object_Item *it = event;
int r = 0, g = 0, b = 0, a = 0;
@ -73,7 +77,9 @@ _cb_op_color_item_sel(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
}
static void
_cb_op_color_chg(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_color_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -107,7 +113,9 @@ _cb_op_color_chg(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUS
}
static void
_cb_op_reset(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_op_reset(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -144,7 +152,10 @@ _cb_op_reset(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event E
}
static void
_cb_op_scroller_resize(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_op_scroller_resize(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
// make color palettes wrap back. :) works with elm git.
int i;

@ -5,9 +5,9 @@
#include "options_elm.h"
static void
launch_elm_config(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
launch_elm_config(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
int pid;
@ -24,7 +24,7 @@ launch_elm_config(void *data EINA_UNUSED,
}
void
options_elm(Evas_Object *opbox, Evas_Object *term EINA_UNUSED)
options_elm(Evas_Object *opbox, Evas_Object *_term EINA_UNUSED)
{
Evas_Object *o, *fr, *bx, *bt, *en;

@ -128,7 +128,9 @@ _parse_font_name(const char *full_name,
}
static void
_cb_op_font_sel(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_op_font_sel(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Font *f = data;
Config *config = termio_config_get(f->term);
@ -145,7 +147,9 @@ _cb_op_font_sel(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSE
}
static void
_cb_op_fontsize_sel(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_fontsize_sel(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -165,7 +169,10 @@ _cb_op_font_sort(const void *d1, const void *d2)
}
static void
_cb_op_font_preview_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_font_preview_del(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *o;
Ecore_Timer *timer = evas_object_data_get(obj, "delay");
@ -233,7 +240,10 @@ done:
}
static void
_cb_op_font_preview_eval(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_font_preview_eval(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Font *f = data;
Evas_Coord ox, oy, ow, oh, vx, vy, vw, vh;
@ -287,20 +297,27 @@ _cb_op_font_content_get(void *data, Evas_Object *obj, const char *part)
}
static char *
_cb_op_font_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
_cb_op_font_text_get(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_part EINA_UNUSED)
{
Font *f = data;
return strdup(f->pretty_name);
}
static char *
_cb_op_font_group_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
_cb_op_font_group_text_get(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_part EINA_UNUSED)
{
return strdup(data);
}
static void
_cb_term_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_term_resize(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
if (expecting_resize)
@ -312,7 +329,10 @@ _cb_term_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, v
}
static void
_cb_font_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
_cb_font_del(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
evas_object_event_callback_del_full(term, EVAS_CALLBACK_RESIZE,
@ -343,8 +363,9 @@ options_font_clear(void)
}
static void
_cb_font_bolditalic(void *data, Evas_Object *obj,
void *event EINA_UNUSED)
_cb_font_bolditalic(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);

@ -8,7 +8,9 @@
#include "main.h"
static void
_cb_op_helper_inline_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_inline_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -17,7 +19,9 @@ _cb_op_helper_inline_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
}
static void
_cb_op_helper_email_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_email_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -38,7 +42,9 @@ _cb_op_helper_email_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
}
static void
_cb_op_helper_url_image_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_url_image_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -59,7 +65,9 @@ _cb_op_helper_url_image_chg(void *data, Evas_Object *obj, void *event EINA_UNUSE
}
static void
_cb_op_helper_url_video_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_url_video_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -80,7 +88,9 @@ _cb_op_helper_url_video_chg(void *data, Evas_Object *obj, void *event EINA_UNUSE
}
static void
_cb_op_helper_url_general_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_url_general_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -101,7 +111,9 @@ _cb_op_helper_url_general_chg(void *data, Evas_Object *obj, void *event EINA_UNU
}
static void
_cb_op_helper_local_image_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_local_image_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -122,7 +134,9 @@ _cb_op_helper_local_image_chg(void *data, Evas_Object *obj, void *event EINA_UNU
}
static void
_cb_op_helper_local_video_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_local_video_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);
@ -143,7 +157,9 @@ _cb_op_helper_local_video_chg(void *data, Evas_Object *obj, void *event EINA_UNU
}
static void
_cb_op_helper_local_general_chg(void *data, Evas_Object *obj, void *event EINA_UNUSED)
_cb_op_helper_local_general_chg(void *data,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
Evas_Object *term = data;
Config *config = termio_config_get(term);

@ -16,8 +16,9 @@ static Evas_Object *_layout;
static void _hover_del(Evas_Object *o);
static void
_shortcut_delete(void *data, Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
_shortcut_delete(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
Evas_Object *hs, *bx;
Config_Keys *cfg_key;
@ -72,7 +73,8 @@ _shortcut_button_add(Evas_Object *bx, const Config_Keys *key)
}
static void
_cb_key_up(void *data, Evas *e EINA_UNUSED,
_cb_key_up(void *data,
Evas *_e EINA_UNUSED,
Evas_Object *obj, void *event)
{
Evas_Event_Key_Up *ev = event;
@ -142,8 +144,10 @@ _cb_key_up(void *data, Evas *e EINA_UNUSED,
}
static void
_cb_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
Evas_Object *obj, void *event EINA_UNUSED)
_cb_mouse_down(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *obj,
void *_event EINA_UNUSED)
{
_hover_del(obj);
}
@ -163,35 +167,36 @@ _hover_sizing_eval(void)
}
static void
_parent_move_cb(void *data EINA_UNUSED,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
_parent_move_cb(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
_hover_sizing_eval();
}
static void
_parent_resize_cb(void *data EINA_UNUSED,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
_parent_resize_cb(void *_data EINA_UNUSED,
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
_hover_sizing_eval();
}
static void
_parent_hide_cb(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
_hover_del(data);
}
static void
_parent_del_cb(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
Evas *_e EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
_hover_del(data);
}
@ -216,16 +221,16 @@ _hover_del(Evas_Object *o)
}
static void
_cb_focused(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
_cb_focused(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
DBG("focused");
}
static void
_cb_unfocused(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
_cb_unfocused(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
DBG("unfocused");
if (_layout)
@ -235,7 +240,7 @@ _cb_unfocused(void *data EINA_UNUSED,
static void
on_shortcut_add(void *data,
Evas_Object *bt,
void *event_info EINA_UNUSED)
void *_event_info EINA_UNUSED)
{
Evas_Object *o, *oe;
Evas_Object *bx = data;
@ -270,7 +275,7 @@ on_shortcut_add(void *data,
}
static Evas_Object *
gl_content_get(void *data, Evas_Object *obj, const char *part EINA_UNUSED)
gl_content_get(void *data, Evas_Object *obj, const char *_part EINA_UNUSED)
{
Evas_Coord min_w = 0, w = 0, min_h = 0, h = 0;
const Shortcut_Action *action = data;
@ -332,16 +337,18 @@ gl_content_get(void *data, Evas_Object *obj, const char *part EINA_UNUSED)
char *gl_group_text_get(void *data, Evas_Object *obj EINA_UNUSED,
const char *part EINA_UNUSED)
char *gl_group_text_get(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_part EINA_UNUSED)
{
Shortcut_Action *action = data;
return strdup(action->description);
}
static void
_cb_reset_keys(void *data, Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
_cb_reset_keys(void *data,
Evas_Object *_obj EINA_UNUSED,
void *_event EINA_UNUSED)
{
Evas_Object *gl = data;

@ -23,7 +23,9 @@ static Eina_List *themes = NULL;
static Ecore_Timer *seltimer = NULL;
static char *
_cb_op_theme_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
_cb_op_theme_text_get(void *data,
Evas_Object *_obj EINA_UNUSED,
const char *_part EINA_UNUSED)