From 1528b8c6aa019b2a421d597122494f496ffab898 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Wed, 6 Jan 2016 00:00:56 +0100 Subject: [PATCH] ecore_cocoa: use Eina_Bool instead of int Signed-off-by: Cedric BAIL --- src/lib/ecore_cocoa/Ecore_Cocoa.h | 4 ++-- src/lib/ecore_cocoa/ecore_cocoa_window.m | 8 ++++++-- 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, const char *title); EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, - int on); + Eina_Bool on); EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, - int on); + Eina_Bool on); EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window, 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) EAPI void ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, - int on) + Eina_Bool on) { EINA_SAFETY_ON_NULL_RETURN(window); @@ -553,13 +553,17 @@ ecore_cocoa_window_iconified_set(Ecore_Cocoa_Window *window, EAPI void ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window, - int on) + Eina_Bool on) { EINA_SAFETY_ON_NULL_RETURN(window); if (on) [window->window setContentBorderThickness:0.0 forEdge:NSMinXEdge | NSMinYEdge | NSMaxXEdge | NSMaxYEdge]; + else + { + // TODO + } } EAPI void