summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeber <beber>2005-07-20 22:21:12 +0000
committerbeber <beber>2005-07-20 22:21:12 +0000
commit325a58afd244e7fd01a289e72fbf49c7ea6e1b5a (patch)
treeda3a5c3d83bae782faba955c291de76cc937a103
parentcd195daeaed424b624a17074ef9da6d6d630f672 (diff)
test
-rw-r--r--elock.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/elock.c b/elock.c
index e3334f5..909f526 100644
--- a/elock.c
+++ b/elock.c
@@ -38,7 +38,7 @@ int main (int argc, char **argv)
38 /* calling timer with the duration */ 38 /* calling timer with the duration */
39 timer = elock_build_timer (time); 39 timer = elock_build_timer (time);
40 if (!timer) 40 if (!timer)
41 fprintf (stdout, "ERROR OF TIMER"); 41 fprintf (stdout, "error of timer");
42 42
43 /* Building and setting evas window */ 43 /* Building and setting evas window */
44 ee = ecore_evas_software_x11_new (NULL, 0, 0, 0, WIDTH, HEIGHT); 44 ee = ecore_evas_software_x11_new (NULL, 0, 0, 0, WIDTH, HEIGHT);
@@ -150,27 +150,26 @@ int elock_event_cb (void *data, int ev_type, void *ev)
150 150
151void elock_key_event_cb (void *data, Evas * e, Evas_Object * obj, void *event_info) 151void elock_key_event_cb (void *data, Evas * e, Evas_Object * obj, void *event_info)
152{ 152{
153 153 fprintf (stdout, "debug ici");
154 fprintf (stdout, "DEBUG ICI");
155 Evas_Event_Key_Down *ev; 154 Evas_Event_Key_Down *ev;
156 155
157 fprintf (stdout, "DEBUG LA"); 156 fprintf (stdout, "debug la");
158 157
159 ev = (Evas_Event_Key_Down *) event_info; 158 ev = (Evas_Event_Key_Down *) event_info;
160 fprintf (stdout, "You hit key: %s\n", ev->keyname); 159 fprintf (stdout, "You hit key: %s\n", ev->keyname);
161 fprintf (stdout, " and TIMER RESET\n"); 160 fprintf (stdout, " and timer reset\n");
162 elock_kill_timer (timer); 161 elock_kill_timer (timer);
163} 162}
164 163
165void elock_mouse_event_cb (void *data, Evas * e, Evas_Object * obj, void *event_info) 164void elock_mouse_event_cb (void *data, Evas * e, Evas_Object * obj, void *event_info)
166{ 165{
167 fprintf (stdout, "MOUSE DOWN EVENT"); 166 fprintf (stdout, "mouse down event");
168 167
169 Evas_Event_Mouse_Down *ev; 168 Evas_Event_Mouse_Down *ev;
170 169
171 ev = (Evas_Event_Mouse_Down *) event_info; 170 ev = (Evas_Event_Mouse_Down *) event_info;
172 fprintf (stdout, "You hit key: %s\n", ev->button); 171 fprintf (stdout, "You hit key: %s\n", ev->button);
173 fprintf (stdout, " and TIMER RESET\n"); 172 fprintf (stdout, " and timer reset\n");
174 elock_kill_timer (timer); 173 elock_kill_timer (timer);
175} 174}
176 175