mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Changes to make the glib-removal-hack branch build on MacOSX
Tested with the Homebrew packaging system Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4d3e74a236
commit
4d0b6e698a
9 changed files with 9 additions and 16 deletions
6
macos.c
6
macos.c
|
@ -42,7 +42,7 @@ void subsurface_set_conf(const char *name, const char *value)
|
|||
CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES);
|
||||
}
|
||||
|
||||
void subsurface_set_conf_bool(const char *name, int value)
|
||||
void subsurface_set_conf_bool(const char *name, bool value)
|
||||
{
|
||||
CFPreferencesSetAppValue(CFSTR_VAR(name),
|
||||
value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES);
|
||||
|
@ -252,12 +252,12 @@ void subsurface_command_line_exit(int *argc, char ***argv)
|
|||
/* this is a no-op */
|
||||
}
|
||||
|
||||
int subsurface_os_feature_available(os_feature_t f)
|
||||
bool subsurface_os_feature_available(os_feature_t f)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int subsurface_launch_for_uri(const char* uri)
|
||||
bool subsurface_launch_for_uri(const char* uri)
|
||||
{
|
||||
CFURLRef urlref = CFURLCreateWithBytes(NULL, uri, strlen(uri), kCFStringEncodingMacRoman, NULL);
|
||||
OSStatus status = LSOpenCFURLRef(urlref, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue