summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-10-02 04:35:04 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-10-02 04:35:04 +0000
commitc06f58dc3f4837a40eda6623af5a70e90ee27b44 (patch)
treee17589acb421e9eeb76d490f724c00c073f80335 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parent11341fff0fee7b0bf488344fc852ca643f7ef2c0 (diff)
logify ecore_evas. Patch by Mathieu Taillefumier (a bit modified)
SVN revision: 42852
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c37
1 files changed, 15 insertions, 22 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
index 52ee583f43..e72652e0f8 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -23,13 +23,6 @@
23 23
24#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE 24#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE
25 25
26/* logging messages macros */
27int _ecore_evas_log_dom = -1;
28
29#define ECORE_EVAS_MSG_ERR(...) EINA_LOG_DOM_ERR(_ecore_evas_log_dom , __VA_ARGS__)
30#define ECORE_EVAS_MSG_DBG(...) EINA_LOG_DOM_DBG(_ecore_evas_log_dom , __VA_ARGS__)
31#define ECORE_EVAS_MSG_INFO(...) EINA_LOG_DOM_INFO(_ecore_evas_log_dom , __VA_ARGS__)
32
33#define ECORE_EVAS_EVENT_COUNT 7 26#define ECORE_EVAS_EVENT_COUNT 7
34 27
35static int _ecore_evas_init_count = 0; 28static int _ecore_evas_init_count = 0;
@@ -173,7 +166,7 @@ _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, voi
173 Ecore_Evas *ee; 166 Ecore_Evas *ee;
174 Ecore_WinCE_Event_Mouse_In *e; 167 Ecore_WinCE_Event_Mouse_In *e;
175 168
176 ECORE_EVAS_MSG_INFO("mouse in\n"); 169 INF("mouse in");
177 170
178 e = event; 171 e = event;
179 ee = ecore_event_window_match((Ecore_Window)e->window); 172 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -195,7 +188,7 @@ _ecore_evas_wince_event_mouse_out(void *data __UNUSED__, int type __UNUSED__, vo
195 Ecore_Evas *ee; 188 Ecore_Evas *ee;
196 Ecore_WinCE_Event_Mouse_Out *e; 189 Ecore_WinCE_Event_Mouse_Out *e;
197 190
198 ECORE_EVAS_MSG_INFO("mouse out\n"); 191 INF("mouse out");
199 192
200 e = event; 193 e = event;
201 ee = ecore_event_window_match((Ecore_Window)e->window); 194 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -219,7 +212,7 @@ _ecore_evas_wince_event_window_damage(void *data __UNUSED__, int type __UNUSED__
219 Ecore_Evas *ee; 212 Ecore_Evas *ee;
220 Ecore_WinCE_Event_Window_Damage *e; 213 Ecore_WinCE_Event_Window_Damage *e;
221 214
222 ECORE_EVAS_MSG_INFO("window damage\n"); 215 INF("window damage");
223 216
224 e = event; 217 e = event;
225 ee = ecore_event_window_match((Ecore_Window)e->window); 218 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -267,7 +260,7 @@ _ecore_evas_wince_event_window_destroy(void *data __UNUSED__, int type __UNUSED_
267 Ecore_Evas *ee; 260 Ecore_Evas *ee;
268 Ecore_WinCE_Event_Window_Destroy *e; 261 Ecore_WinCE_Event_Window_Destroy *e;
269 262
270 ECORE_EVAS_MSG_INFO("window destroy\n"); 263 INF("window destroy");
271 264
272 e = event; 265 e = event;
273 ee = ecore_event_window_match((Ecore_Window)e->window); 266 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -285,7 +278,7 @@ _ecore_evas_wince_event_window_show(void *data __UNUSED__, int type __UNUSED__,
285 Ecore_Evas *ee; 278 Ecore_Evas *ee;
286 Ecore_WinCE_Event_Window_Show *e; 279 Ecore_WinCE_Event_Window_Show *e;
287 280
288 ECORE_EVAS_MSG_INFO("window show\n"); 281 INF("window show");
289 282
290 e = event; 283 e = event;
291 ee = ecore_event_window_match((Ecore_Window)e->window); 284 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -304,7 +297,7 @@ _ecore_evas_wince_event_window_hide(void *data __UNUSED__, int type __UNUSED__,
304 Ecore_Evas *ee; 297 Ecore_Evas *ee;
305 Ecore_WinCE_Event_Window_Hide *e; 298 Ecore_WinCE_Event_Window_Hide *e;
306 299
307 ECORE_EVAS_MSG_INFO("window hide\n"); 300 INF("window hide");
308 301
309 e = event; 302 e = event;
310 ee = ecore_event_window_match((Ecore_Window)e->window); 303 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -323,7 +316,7 @@ _ecore_evas_wince_event_window_delete_request(void *data __UNUSED__, int type __
323 Ecore_Evas *ee; 316 Ecore_Evas *ee;
324 Ecore_WinCE_Event_Window_Delete_Request *e; 317 Ecore_WinCE_Event_Window_Delete_Request *e;
325 318
326 ECORE_EVAS_MSG_INFO("window delete request\n"); 319 INF("window delete request");
327 320
328 e = event; 321 e = event;
329 ee = ecore_event_window_match((Ecore_Window)e->window); 322 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -340,7 +333,7 @@ _ecore_evas_wince_event_window_delete_request(void *data __UNUSED__, int type __
340static void 333static void
341_ecore_evas_wince_free(Ecore_Evas *ee) 334_ecore_evas_wince_free(Ecore_Evas *ee)
342{ 335{
343 ECORE_EVAS_MSG_INFO("ecore evas free\n"); 336 INF("ecore evas free");
344 337
345 ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window); 338 ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window);
346 ecore_event_window_unregister(ee->prop.window); 339 ecore_event_window_unregister(ee->prop.window);
@@ -359,7 +352,7 @@ _ecore_evas_wince_callback_delete_request_set(Ecore_Evas *ee,
359static void 352static void
360_ecore_evas_wince_move(Ecore_Evas *ee, int x, int y) 353_ecore_evas_wince_move(Ecore_Evas *ee, int x, int y)
361{ 354{
362 ECORE_EVAS_MSG_INFO("ecore evas move (%dx%d)\n", x, y); 355 INF("ecore evas move (%dx%d)", x, y);
363 356
364 if ((x != ee->x) || (y != ee->y)) 357 if ((x != ee->x) || (y != ee->y))
365 { 358 {
@@ -373,7 +366,7 @@ _ecore_evas_wince_move(Ecore_Evas *ee, int x, int y)
373static void 366static void
374_ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height) 367_ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height)
375{ 368{
376 ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d)\n", width, height); 369 INF("ecore evas resize (%dx%d)", width, height);
377 370
378 if ((ee->w != width) || (ee->h != height)) 371 if ((ee->w != width) || (ee->h != height))
379 { 372 {
@@ -399,7 +392,7 @@ _ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height)
399static void 392static void
400_ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int height) 393_ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int height)
401{ 394{
402 ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d %dx%d)\n", x, y, width, height); 395 INF("ecore evas resize (%dx%d %dx%d)", x, y, width, height);
403 396
404 if ((ee->w != width) || (ee->h != height) || (x != ee->x) || (y != ee->y)) 397 if ((ee->w != width) || (ee->h != height) || (x != ee->x) || (y != ee->y))
405 { 398 {
@@ -511,7 +504,7 @@ _ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int heigh
511static void 504static void
512_ecore_evas_wince_show(Ecore_Evas *ee) 505_ecore_evas_wince_show(Ecore_Evas *ee)
513{ 506{
514 ECORE_EVAS_MSG_INFO("ecore evas show\n"); 507 INF("ecore evas show");
515 508
516 ee->should_be_visible = 1; 509 ee->should_be_visible = 1;
517 if (ee->prop.avoid_damage) 510 if (ee->prop.avoid_damage)
@@ -524,7 +517,7 @@ _ecore_evas_wince_show(Ecore_Evas *ee)
524static void 517static void
525_ecore_evas_wince_hide(Ecore_Evas *ee) 518_ecore_evas_wince_hide(Ecore_Evas *ee)
526{ 519{
527 ECORE_EVAS_MSG_INFO("ecore evas hide\n"); 520 INF("ecore evas hide");
528 521
529 ecore_wince_window_hide((Ecore_WinCE_Window *)ee->prop.window); 522 ecore_wince_window_hide((Ecore_WinCE_Window *)ee->prop.window);
530 ee->should_be_visible = 0; 523 ee->should_be_visible = 0;
@@ -551,7 +544,7 @@ _ecore_evas_wince_hide(Ecore_Evas *ee)
551static void 544static void
552_ecore_evas_wince_title_set(Ecore_Evas *ee, const char *title) 545_ecore_evas_wince_title_set(Ecore_Evas *ee, const char *title)
553{ 546{
554 ECORE_EVAS_MSG_INFO("ecore evas title set\n"); 547 INF("ecore evas title set");
555 548
556 if (ee->prop.title) free(ee->prop.title); 549 if (ee->prop.title) free(ee->prop.title);
557 ee->prop.title = NULL; 550 ee->prop.title = NULL;
@@ -669,7 +662,7 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on)
669 Evas_Engine_Info_Software_16_WinCE *einfo; 662 Evas_Engine_Info_Software_16_WinCE *einfo;
670 struct _Ecore_WinCE_Window *window; 663 struct _Ecore_WinCE_Window *window;
671 664
672 ECORE_EVAS_MSG_INFO("ecore evas fullscreen set\n"); 665 INF("ecore evas fullscreen set");
673 666
674 if ((ee->engine.wince.state.fullscreen && on) || 667 if ((ee->engine.wince.state.fullscreen && on) ||
675 (!ee->engine.wince.state.fullscreen && !on)) 668 (!ee->engine.wince.state.fullscreen && !on))