summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_window.m
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2015-01-29 17:08:23 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 16:38:07 +0100
commit72baccaf4494f1661aca762a26597d78a717c6ef (patch)
tree1497f0edd2e82fdf15a9714ee68943c7374ae71f /src/lib/ecore_cocoa/ecore_cocoa_window.m
parent61fbb2ffd9e2b197041a776ec2e629b6cda7c97e (diff)
ecore_cocoa: create a log domain and use Eina_Log.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 8300fbba3a..5e8a2052fd 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -4,6 +4,7 @@
4 4
5#include <Ecore.h> 5#include <Ecore.h>
6#include <Ecore_Cocoa.h> 6#include <Ecore_Cocoa.h>
7#include "ecore_cocoa_private.h"
7#import "ecore_cocoa_window.h" 8#import "ecore_cocoa_window.h"
8 9
9@implementation EcoreCocoaWindow 10@implementation EcoreCocoaWindow
@@ -58,8 +59,7 @@
58 event = malloc(sizeof(Ecore_Cocoa_Event_Video_Resize)); 59 event = malloc(sizeof(Ecore_Cocoa_Event_Video_Resize));
59 if (event == NULL) 60 if (event == NULL)
60 { 61 {
61 // FIXME Use Eina_Log 62 DBG("Failed to allocate Ecore_Cocoa_Event_Video_Resize\n");
62 printf("Failed to allocate Ecore_Cocoa_Event_Video_Resize\n");
63 return; 63 return;
64 } 64 }
65 event->w = size.width; 65 event->w = size.width;
@@ -77,7 +77,7 @@
77 e = malloc(sizeof(Ecore_Cocoa_Event_Window)); 77 e = malloc(sizeof(Ecore_Cocoa_Event_Window));
78 if (!e) 78 if (!e)
79 { 79 {
80 printf("GOT_FOCUS: Failed to allocate Ecore_Cocoa_Event_Window\n"); 80 DBG("GOT_FOCUS: Failed to allocate Ecore_Cocoa_Event_Window\n");
81 return; 81 return;
82 } 82 }
83 e->wid = [notification object]; 83 e->wid = [notification object];
@@ -91,7 +91,7 @@
91 e = malloc(sizeof(Ecore_Cocoa_Event_Window)); 91 e = malloc(sizeof(Ecore_Cocoa_Event_Window));
92 if (!e) 92 if (!e)
93 { 93 {
94 printf("LOST_FOCUS: Failed to allocate Ecore_Cocoa_Event_Window\n"); 94 DBG("LOST_FOCUS: Failed to allocate Ecore_Cocoa_Event_Window\n");
95 return; 95 return;
96 } 96 }
97 e->wid = [notification object]; 97 e->wid = [notification object];
@@ -222,7 +222,7 @@ ecore_cocoa_window_show(Ecore_Cocoa_Window *window)
222{ 222{
223 if (!window || [window->window isVisible]) 223 if (!window || [window->window isVisible])
224 { 224 {
225 printf("Window(%p) is not visible\n", window->window); 225 DBG("Window(%p) is not visible\n", window->window);
226 return; 226 return;
227 } 227 }
228 228
@@ -276,5 +276,8 @@ Ecore_Cocoa_Window_Id ecore_cocoa_window_get_window_id(Ecore_Cocoa_Window *windo
276{ 276{
277 if (!window) 277 if (!window)
278 return 0; 278 return 0;
279
280 DBG("Return : %p", window->window);
281
279 return window->window; 282 return window->window;
280} 283}