summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2016-01-06 00:00:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-03-02 13:56:04 -0800
commit1528b8c6aa019b2a421d597122494f496ffab898 (patch)
tree49032ec304ca2ad21f0739f5ee6cb2687513f67f /src/lib/ecore_cocoa
parentf85667c3fcd79916628243640dea3ec8c07773e4 (diff)
ecore_cocoa: use Eina_Bool instead of int
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h4
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index bee13926bc..5e3ab8735b 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -246,10 +246,10 @@ EAPI void ecore_cocoa_window_title_set(Ecore_Cocoa_Window *window,
246 const char *title); 246 const char *title);
247 247
248EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, 248EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
249 int on); 249 Eina_Bool on);
250 250
251EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, 251EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
252 int on); 252 Eina_Bool on);
253 253
254EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window, 254EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
255 void *view); 255 void *view);
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index ae985e46bc..38c167ce43 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -537,7 +537,7 @@ ecore_cocoa_window_activate(Ecore_Cocoa_Window *window)
537 537
538EAPI void 538EAPI void
539ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, 539ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
540 int on) 540 Eina_Bool on)
541{ 541{
542 EINA_SAFETY_ON_NULL_RETURN(window); 542 EINA_SAFETY_ON_NULL_RETURN(window);
543 543
@@ -553,13 +553,17 @@ ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window,
553 553
554EAPI void 554EAPI void
555ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, 555ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
556 int on) 556 Eina_Bool on)
557{ 557{
558 EINA_SAFETY_ON_NULL_RETURN(window); 558 EINA_SAFETY_ON_NULL_RETURN(window);
559 559
560 if (on) 560 if (on)
561 [window->window setContentBorderThickness:0.0 561 [window->window setContentBorderThickness:0.0
562 forEdge:NSMinXEdge | NSMinYEdge | NSMaxXEdge | NSMaxYEdge]; 562 forEdge:NSMinXEdge | NSMinYEdge | NSMaxXEdge | NSMaxYEdge];
563 else
564 {
565 // TODO
566 }
563} 567}
564 568
565EAPI void 569EAPI void