47
47
#include <gio/gio.h>
52
#define CompAltMask (1 << 16)
53
#define CompMetaMask (1 << 17)
54
#define CompSuperMask (1 << 18)
55
#define CompHyperMask (1 << 19)
56
#define CompModeSwitchMask (1 << 20)
57
#define CompNumLockMask (1 << 21)
58
#define CompScrollLockMask (1 << 22)
60
#define COMPIZ_SCHEMA_ID "org.freedesktop.compiz"
61
#define COMPIZCONFIG_SCHEMA_ID "org.freedesktop.compizconfig"
62
#define PROFILE_SCHEMA_ID "org.freedesktop.compizconfig.profile"
63
#define METACITY "/apps/metacity"
64
#define COMPIZ "/apps/compiz-1"
65
#define COMPIZ_PROFILEPATH COMPIZ "/profiles"
66
#define COMPIZCONFIG "/org/freedesktop/compizconfig"
67
#define PROFILEPATH COMPIZCONFIG "/profiles"
68
#define DEFAULTPROF "Default"
69
#define CORE_NAME "core"
49
#include "gsettings_shared.h"
71
51
#define BUFSIZE 512
73
53
#define NUM_WATCHED_DIRS 3
75
#define KEYNAME(sn) char keyName[BUFSIZE]; \
76
snprintf (keyName, BUFSIZE, "screen%i", sn);
78
#define PATHNAME(p,k) char pathName[BUFSIZE]; \
80
strcmp (p, "core") == 0) \
81
snprintf (pathName, BUFSIZE, \
82
"%s/%s/plugins/%s/%s/options/", COMPIZ, currentProfile, \
85
snprintf(pathName, BUFSIZE, \
86
"%s/%s/plugins/%s/%s/options/", COMPIZ, currentProfile, \
89
56
#define _GNU_SOURCE