ecore_cocoa: fix compile error using 10.15 SDK

This commit is contained in:
Bo Anderson 2020-03-11 00:34:28 +00:00 committed by Stefan Schmidt
parent e88311ae95
commit 51e4bcc32c
2 changed files with 8 additions and 3 deletions

View File

@ -9,6 +9,7 @@
Ecore_Timer *_timer;
NSDate *_expiration;
Ecore_Cocoa_Terminate_Cb _terminate_cb;
BOOL _is_running;
}
- (NSDate *)eventExpirationDate;

View File

@ -45,8 +45,7 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
- (void)internalUpdate
{
[_mainMenu update];
// FIXME Will not compile with GNUStep (member is named "_main_menu")
[[self mainMenu] update];
}
- (id)init
@ -72,11 +71,16 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
return _expiration;
}
- (BOOL)isRunning
{
return _is_running;
}
- (void)run
{
[self finishLaunching];
_running = 1;
_is_running = YES;
_expiration = [NSDate distantPast];
_timer = ecore_timer_add(ECORE_COCOA_MAINLOOP_PERIOD,