~ps-jenkins/compiz/latestsnapshot-10.9.9daily13.06.1913.04-0ubuntu1

« back to all changes in this revision

Viewing changes to compizconfig/gsettings/src/gsettings.h

  • Committer: Tarmac
  • Author(s): smspillaz, Sam Spilsbury, Daniel van Vugt
  • Date: 2012-07-11 08:00:58 UTC
  • mfrom: (3262.3.80 gsettings)
  • Revision ID: tarmac-20120711080058-i4iax4g092e84s30
Add gsettings test cases and schema/path cleanups.. Fixes: . Approved by Daniel van Vugt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
#include <gio/gio.h>
48
48
 
49
 
#include <X11/X.h>
50
 
#include <X11/Xlib.h>
51
 
 
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)
59
 
 
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"
70
50
 
71
51
#define BUFSIZE 512
72
52
 
73
53
#define NUM_WATCHED_DIRS 3
74
54
 
75
 
#define KEYNAME(sn)     char keyName[BUFSIZE]; \
76
 
                    snprintf (keyName, BUFSIZE, "screen%i", sn);
77
 
 
78
 
#define PATHNAME(p,k)    char pathName[BUFSIZE]; \
79
 
                    if (!p || \
80
 
                        strcmp (p, "core") == 0) \
81
 
                        snprintf (pathName, BUFSIZE, \
82
 
                                 "%s/%s/plugins/%s/%s/options/", COMPIZ, currentProfile, \
83
 
                                 p, k); \
84
 
                    else \
85
 
                        snprintf(pathName, BUFSIZE, \
86
 
                                 "%s/%s/plugins/%s/%s/options/", COMPIZ, currentProfile, \
87
 
                                 p, k);
88
 
 
 
55
#ifndef _GNU_SOURCE
89
56
#define _GNU_SOURCE
 
57
#endif
90
58
 
91
59
typedef enum {
92
60
    OptionInt,