summaryrefslogtreecommitdiff
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-10-05 22:00:22 +0200
committerBoris Faure <billiob@gmail.com>2016-10-05 22:00:22 +0200
commit76f1bf4342e05d12d2395f09cea7286343e18557 (patch)
tree9c184d7263047441ef7be1adcf8fb926e1312596 /src/bin/options_font.c
parenta2bedb628196cdccf249565984fa64ff7668952d (diff)
prefix EINA_UNUSED parameters with an underscore
and fix related issues
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c41
1 files changed, 31 insertions, 10 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index c7abe28..ab13185 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -128,7 +128,9 @@ _parse_font_name(const char *full_name,
128} 128}
129 129
130static void 130static void
131_cb_op_font_sel(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 131_cb_op_font_sel(void *data,
132 Evas_Object *_obj EINA_UNUSED,
133 void *_event EINA_UNUSED)
132{ 134{
133 Font *f = data; 135 Font *f = data;
134 Config *config = termio_config_get(f->term); 136 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
145} 147}
146 148
147static void 149static void
148_cb_op_fontsize_sel(void *data, Evas_Object *obj, void *event EINA_UNUSED) 150_cb_op_fontsize_sel(void *data,
151 Evas_Object *obj,
152 void *_event EINA_UNUSED)
149{ 153{
150 Evas_Object *term = data; 154 Evas_Object *term = data;
151 Config *config = termio_config_get(term); 155 Config *config = termio_config_get(term);
@@ -165,7 +169,10 @@ _cb_op_font_sort(const void *d1, const void *d2)
165} 169}
166 170
167static void 171static void
168_cb_op_font_preview_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) 172_cb_op_font_preview_del(void *_data EINA_UNUSED,
173 Evas *_e EINA_UNUSED,
174 Evas_Object *obj,
175 void *_event EINA_UNUSED)
169{ 176{
170 Evas_Object *o; 177 Evas_Object *o;
171 Ecore_Timer *timer = evas_object_data_get(obj, "delay"); 178 Ecore_Timer *timer = evas_object_data_get(obj, "delay");
@@ -233,7 +240,10 @@ done:
233} 240}
234 241
235static void 242static void
236_cb_op_font_preview_eval(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED) 243_cb_op_font_preview_eval(void *data,
244 Evas *_e EINA_UNUSED,
245 Evas_Object *obj,
246 void *_event EINA_UNUSED)
237{ 247{
238 Font *f = data; 248 Font *f = data;
239 Evas_Coord ox, oy, ow, oh, vx, vy, vw, vh; 249 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)
287} 297}
288 298
289static char * 299static char *
290_cb_op_font_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) 300_cb_op_font_text_get(void *data,
301 Evas_Object *_obj EINA_UNUSED,
302 const char *_part EINA_UNUSED)
291{ 303{
292 Font *f = data; 304 Font *f = data;
293 return strdup(f->pretty_name); 305 return strdup(f->pretty_name);
294} 306}
295 307
296static char * 308static char *
297_cb_op_font_group_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) 309_cb_op_font_group_text_get(void *data,
310 Evas_Object *_obj EINA_UNUSED,
311 const char *_part EINA_UNUSED)
298{ 312{
299 return strdup(data); 313 return strdup(data);
300} 314}
301 315
302static void 316static void
303_cb_term_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 317_cb_term_resize(void *data,
318 Evas *_e EINA_UNUSED,
319 Evas_Object *_obj EINA_UNUSED,
320 void *_event EINA_UNUSED)
304{ 321{
305 Evas_Object *term = data; 322 Evas_Object *term = data;
306 if (expecting_resize) 323 if (expecting_resize)
@@ -312,7 +329,10 @@ _cb_term_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, v
312} 329}
313 330
314static void 331static void
315_cb_font_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 332_cb_font_del(void *data,
333 Evas *_e EINA_UNUSED,
334 Evas_Object *_obj EINA_UNUSED,
335 void *_event EINA_UNUSED)
316{ 336{
317 Evas_Object *term = data; 337 Evas_Object *term = data;
318 evas_object_event_callback_del_full(term, EVAS_CALLBACK_RESIZE, 338 evas_object_event_callback_del_full(term, EVAS_CALLBACK_RESIZE,
@@ -343,8 +363,9 @@ options_font_clear(void)
343} 363}
344 364
345static void 365static void
346_cb_font_bolditalic(void *data, Evas_Object *obj, 366_cb_font_bolditalic(void *data,
347 void *event EINA_UNUSED) 367 Evas_Object *obj,
368 void *_event EINA_UNUSED)
348{ 369{
349 Evas_Object *term = data; 370 Evas_Object *term = data;
350 Config *config = termio_config_get(term); 371 Config *config = termio_config_get(term);