Skip to content

Commit

Permalink
refactor: cocoa naming-convention
Browse files Browse the repository at this point in the history
  • Loading branch information
lessp committed Aug 28, 2020
1 parent 5073247 commit 9e0b01f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Native/ReveryCocoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Native/image_cocoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import <Cocoa/Cocoa.h>

void *revery_makeImageFromAbsolutePath(const char *imagePath) {
void *revery_makeImageFromAbsolutePath_cocoa(const char *imagePath) {
NSString *nsImagePath =
[NSString stringWithCString:imagePath encoding:NSUTF8StringEncoding];

Expand Down
2 changes: 1 addition & 1 deletion src/Native/tray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9e0b01f

Please sign in to comment.