From 9e0b01ff746a7b37603c86ba345d7a1b3b3a3d0e Mon Sep 17 00:00:00 2001 From: Tom Ekander Date: Fri, 28 Aug 2020 10:21:55 +0200 Subject: [PATCH] refactor: cocoa naming-convention --- src/Native/ReveryCocoa.h | 2 +- src/Native/image_cocoa.c | 2 +- src/Native/tray.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Native/ReveryCocoa.h b/src/Native/ReveryCocoa.h index 5f2d8be42..cf092d324 100644 --- a/src/Native/ReveryCocoa.h +++ b/src/Native/ReveryCocoa.h @@ -23,7 +23,7 @@ void revery_setIconProgressIndeterminate_cocoa(void *dt); void revery_hideIconProgress_cocoa(void* ip); /* Image functions */ -void *revery_makeImageFromAbsolutePath(const char *image_path_v); +void *revery_makeImageFromAbsolutePath_cocoa(const char *image_path_v); /* Open functions */ int revery_openURL_cocoa(const char *url_string); diff --git a/src/Native/image_cocoa.c b/src/Native/image_cocoa.c index 8c4a2519a..fed24481c 100644 --- a/src/Native/image_cocoa.c +++ b/src/Native/image_cocoa.c @@ -4,7 +4,7 @@ #import -void *revery_makeImageFromAbsolutePath(const char *imagePath) { +void *revery_makeImageFromAbsolutePath_cocoa(const char *imagePath) { NSString *nsImagePath = [NSString stringWithCString:imagePath encoding:NSUTF8StringEncoding]; diff --git a/src/Native/tray.c b/src/Native/tray.c index a50eba438..7b69ffa6e 100644 --- a/src/Native/tray.c +++ b/src/Native/tray.c @@ -29,7 +29,7 @@ CAMLprim value revery_makeTrayHandle(value imagePath_v) { if (imagePath_v != Val_none) { const char *imagePath = String_val(Some_val(imagePath_v)); - NSImage *nsImage = revery_makeImageFromAbsolutePath(imagePath); + NSImage *nsImage = revery_makeImageFromAbsolutePath_cocoa(imagePath); statusItem.button.image = nsImage;