summaryrefslogtreecommitdiff
path: root/src/bin/controls.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/controls.c
parenta2bedb628196cdccf249565984fa64ff7668952d (diff)
prefix EINA_UNUSED parameters with an underscore
and fix related issues
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c74
1 files changed, 53 insertions, 21 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index 23297af..d5722ea 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -16,7 +16,9 @@ static void (*ct_donecb) (void *data) = NULL;
16static void *ct_donedata = NULL; 16static void *ct_donedata = NULL;
17 17
18static void 18static void
19_cb_sel_on(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_UNUSED) 19_cb_sel_on(void *_data EINA_UNUSED,
20 Evas_Object *_term EINA_UNUSED,
21 void *_ev EINA_UNUSED)
20{ 22{
21 Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy"); 23 Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy");
22 if (bt_copy) 24 if (bt_copy)
@@ -24,7 +26,9 @@ _cb_sel_on(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_
24} 26}
25 27
26static void 28static void
27_cb_sel_off(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA_UNUSED) 29_cb_sel_off(void *_data EINA_UNUSED,
30 Evas_Object *_term EINA_UNUSED,
31 void *_ev EINA_UNUSED)
28{ 32{
29 Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy"); 33 Evas_Object *bt_copy = evas_object_data_get(ct_frame, "bt_copy");
30 if (bt_copy) 34 if (bt_copy)
@@ -32,7 +36,7 @@ _cb_sel_off(void *data EINA_UNUSED, Evas_Object *term EINA_UNUSED, void *ev EINA
32} 36}
33 37
34static Eina_Bool 38static Eina_Bool
35_cb_ct_del_delay(void *data EINA_UNUSED) 39_cb_ct_del_delay(void *_data EINA_UNUSED)
36{ 40{
37 if (ct_over) 41 if (ct_over)
38 { 42 {
@@ -50,81 +54,103 @@ _cb_ct_del_delay(void *data EINA_UNUSED)
50} 54}
51 55
52static void 56static void
53_cb_ct_copy(void *data EINA_UNUSED, 57_cb_ct_copy(void *_data EINA_UNUSED,
54 Evas_Object *obj EINA_UNUSED, 58 Evas_Object *_obj EINA_UNUSED,
55 void *event EINA_UNUSED) 59 void *_event EINA_UNUSED)
56{ 60{
57 termio_take_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD); 61 termio_take_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD);
58 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 62 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
59} 63}
60 64
61static void 65static void
62_cb_ct_paste(void *data EINA_UNUSED, 66_cb_ct_paste(void *_data EINA_UNUSED,
63 Evas_Object *obj EINA_UNUSED, 67 Evas_Object *_obj EINA_UNUSED,
64 void *event EINA_UNUSED) 68 void *_event EINA_UNUSED)
65{ 69{
66 termio_paste_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD); 70 termio_paste_selection(ct_term, ELM_SEL_TYPE_CLIPBOARD);
67 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 71 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
68} 72}
69 73
70static void 74static void
71_cb_ct_new(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 75_cb_ct_new(void *_data EINA_UNUSED,
76 Evas_Object *_obj EINA_UNUSED,
77 void *_event EINA_UNUSED)
72{ 78{
73 main_new(ct_win, ct_term); 79 main_new(ct_win, ct_term);
74} 80}
75 81
76static void 82static void
77_cb_ct_split_v(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 83_cb_ct_split_v(void *_data EINA_UNUSED,
84 Evas_Object *_obj EINA_UNUSED,
85 void *_event EINA_UNUSED)
78{ 86{
79 split_vertically(ct_win, ct_term, NULL); 87 split_vertically(ct_win, ct_term, NULL);
80} 88}
81 89
82static void 90static void
83_cb_ct_split_h(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 91_cb_ct_split_h(void *_data EINA_UNUSED,
92 Evas_Object *_obj EINA_UNUSED,
93 void *_event EINA_UNUSED)
84{ 94{
85 split_horizontally(ct_win, ct_term, NULL); 95 split_horizontally(ct_win, ct_term, NULL);
86} 96}
87 97
88static void 98static void
89_cb_ct_miniview(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 99_cb_ct_miniview(void *_data EINA_UNUSED,
100 Evas_Object *_obj EINA_UNUSED,
101 void *_event EINA_UNUSED)
90{ 102{
91 term_miniview_toggle(termio_term_get(ct_term)); 103 term_miniview_toggle(termio_term_get(ct_term));
92} 104}
93 105
94static void 106static void
95_cb_ct_set_title(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 107_cb_ct_set_title(void *_data EINA_UNUSED,
108 Evas_Object *_obj EINA_UNUSED,
109 void *_event EINA_UNUSED)
96{ 110{
97 term_set_title(termio_term_get(ct_term)); 111 term_set_title(termio_term_get(ct_term));
98} 112}
99 113
100static void 114static void
101_cb_ct_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 115_cb_ct_close(void *_data EINA_UNUSED,
116 Evas_Object *_obj EINA_UNUSED,
117 void *_event EINA_UNUSED)
102{ 118{
103 term_close(ct_win, ct_term, EINA_FALSE); 119 term_close(ct_win, ct_term, EINA_FALSE);
104} 120}
105 121
106static void 122static void
107_cb_ct_options(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 123_cb_ct_options(void *_data EINA_UNUSED,
124 Evas_Object *_obj EINA_UNUSED,
125 void *_event EINA_UNUSED)
108{ 126{
109 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 127 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
110 options_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 128 options_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
111} 129}
112 130
113static void 131static void
114_cb_ct_about(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) 132_cb_ct_about(void *_data EINA_UNUSED,
133 Evas_Object *_obj EINA_UNUSED,
134 void *_event EINA_UNUSED)
115{ 135{
116 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 136 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
117 about_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 137 about_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
118} 138}
119 139
120static void 140static void
121_cb_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) 141_cb_mouse_down(void *_data EINA_UNUSED,
142 Evas *_e EINA_UNUSED,
143 Evas_Object *_obj EINA_UNUSED,
144 void *_ev EINA_UNUSED)
122{ 145{
123 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata); 146 controls_toggle(ct_win, ct_bg, ct_term, ct_donecb, ct_donedata);
124} 147}
125 148
126static void 149static void
127_cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) 150_cb_frame_del(void *_data EINA_UNUSED,
151 Evas *_e EINA_UNUSED,
152 Evas_Object *_obj EINA_UNUSED,
153 void *_ev EINA_UNUSED)
128{ 154{
129 if (ct_win) 155 if (ct_win)
130 { 156 {
@@ -135,13 +161,19 @@ _cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA
135} 161}
136 162
137static void 163static void
138_cb_over_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) 164_cb_over_del(void *_data EINA_UNUSED,
165 Evas *_e EINA_UNUSED,
166 Evas_Object *_obj EINA_UNUSED,
167 void *_ev EINA_UNUSED)
139{ 168{
140 ct_over = NULL; 169 ct_over = NULL;
141} 170}
142 171
143static void 172static void
144_cb_saved_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) 173_cb_saved_del(void *_data EINA_UNUSED,
174 Evas *_e EINA_UNUSED,
175 Evas_Object *obj,
176 void *_ev EINA_UNUSED)
145{ 177{
146 if ((obj == ct_win) || (obj == ct_term)) 178 if ((obj == ct_win) || (obj == ct_term))
147 { 179 {