Have some C++ file in the project

Rename gtk-gui.c to qt-gui.cpp, and make the necessary changes so that
the project still builds.

Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net>
This commit is contained in:
Alberto Mardegan 2013-04-01 13:51:49 +03:00
parent 42365ede79
commit 578d633d01
13 changed files with 124 additions and 65 deletions

14
macos.c
View file

@ -30,29 +30,29 @@ void subsurface_open_conf(void)
/* nothing at this time */
}
void subsurface_unset_conf(char *name)
void subsurface_unset_conf(const char *name)
{
CFPreferencesSetAppValue(CFSTR_VAR(name), NULL, SUBSURFACE_PREFERENCES);
}
void subsurface_set_conf(char *name, const char *value)
void subsurface_set_conf(const char *name, const char *value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES);
}
void subsurface_set_conf_bool(char *name, int value)
void subsurface_set_conf_bool(const char *name, int value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name),
value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES);
}
void subsurface_set_conf_int(char *name, int value)
void subsurface_set_conf_int(const char *name, int value)
{
CFNumberRef numRef = CFNumberCreate(NULL, kCFNumberIntType, &value);
CFPreferencesSetAppValue(CFSTR_VAR(name), numRef, SUBSURFACE_PREFERENCES);
}
const void *subsurface_get_conf(char *name)
const char *subsurface_get_conf(char *name)
{
CFPropertyListRef strpref;
@ -62,7 +62,7 @@ const void *subsurface_get_conf(char *name)
return strdup(CFStringGetCStringPtr(strpref, kCFStringEncodingMacRoman));
}
int subsurface_get_conf_bool(char *name)
int subsurface_get_conf_bool(const char *name)
{
Boolean boolpref, exists;
@ -72,7 +72,7 @@ int subsurface_get_conf_bool(char *name)
return boolpref;
}
int subsurface_get_conf_int(char *name)
int subsurface_get_conf_int(const char *name)
{
Boolean exists;
CFIndex value;