Merge lp:~compiz-team/compiz/fix-1060804 into lp:compiz/0.9.9
- fix-1060804
- Merge into 0.9.9
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Daniel van Vugt | ||||
Approved revision: | 3421 | ||||
Merged at revision: | 3412 | ||||
Proposed branch: | lp:~compiz-team/compiz/fix-1060804 | ||||
Merge into: | lp:compiz/0.9.9 | ||||
Diff against target: |
1639 lines (+234/-493) 55 files modified
cmake/CompizCommon.cmake (+6/-1) compizconfig/gsettings/gsettings_backend_shared/CMakeLists.txt (+1/-0) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.h (+1/-3) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_fwd.h (+13/-0) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_interface.h (+2/-6) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface.h (+3/-2) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.c (+2/-0) compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.h (+2/-2) compizconfig/gsettings/gsettings_backend_shared/gsettings_util.h (+1/-6) compizconfig/gsettings/tests/test_gsettings_conformance.cpp (+2/-2) compizconfig/gsettings/tests/test_gsettings_tests.cpp (+0/-15) compizconfig/gsettings/tests/test_gsettings_wrapper.cpp (+5/-1) compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting.h (+3/-6) compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting_factory.h (+3/-4) compizconfig/integration/gnome/gsettings/include/ccs_gnome_gsettings_fwd.h (+12/-0) compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting.h (+3/-5) compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting_factory.h (+5/-8) compizconfig/integration/gnome/include/ccs_gnome_fwd.h (+13/-0) compizconfig/integration/gnome/include/ccs_gnome_integrated_setting.h (+2/-4) compizconfig/integration/gnome/include/ccs_gnome_integration.h (+4/-2) compizconfig/integration/gnome/include/ccs_gnome_integration_types.h (+0/-9) compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c (+1/-1) compizconfig/integration/gnome/tests/compizconfig_ccs_mock_gnome_integrated_setting_composition.h (+4/-5) compizconfig/integration/gnome/tests/compizconfig_test_ccs_gnome_integration.cpp (+3/-15) compizconfig/libcompizconfig/include/CMakeLists.txt (+1/-0) compizconfig/libcompizconfig/include/ccs-backend.h (+6/-22) compizconfig/libcompizconfig/include/ccs-fwd.h (+48/-0) compizconfig/libcompizconfig/include/ccs-object.h (+3/-3) compizconfig/libcompizconfig/include/ccs.h (+0/-7) compizconfig/libcompizconfig/src/ccs_settings_upgrade_internal.h (+2/-3) compizconfig/libcompizconfig/src/ccs_text_file.h (+2/-3) compizconfig/libcompizconfig/tests/compizconfig_test_ccs_mock_backend_conformance.cpp (+2/-2) compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp (+0/-12) compizconfig/tests/compizconfig_backend_concept_test.h (+19/-303) compizconfig/tests/compizconfig_backend_concept_test_environment_interface.h (+2/-2) gtk/window-decorator/CMakeLists.txt (+1/-0) gtk/window-decorator/blurprops.c (+1/-0) gtk/window-decorator/events.c (+2/-1) gtk/window-decorator/gtk-window-decorator.c (+1/-0) gtk/window-decorator/gtk-window-decorator.h (+1/-4) gtk/window-decorator/gwd-cairo-window-decoration-util.h (+1/-2) gtk/window-decorator/gwd-fwd.h (+35/-0) gtk/window-decorator/gwd-metacity-window-decoration-util.h (+1/-1) gtk/window-decorator/gwd-settings-interface.h (+1/-1) gtk/window-decorator/gwd-settings-notified-interface.h (+1/-1) gtk/window-decorator/gwd-settings-notified.h (+2/-3) gtk/window-decorator/gwd-settings-storage-gconf.h (+1/-3) gtk/window-decorator/gwd-settings-storage-gsettings.h (+1/-4) gtk/window-decorator/gwd-settings-storage-interface.h (+1/-1) gtk/window-decorator/gwd-settings-writable-interface.h (+1/-1) gtk/window-decorator/gwd-settings-xproperty-interface.h (+1/-1) gtk/window-decorator/gwd-settings-xproperty-storage.h (+1/-2) gtk/window-decorator/gwd-settings.h (+1/-3) gtk/window-decorator/tests/test_gwd_settings.cpp (+0/-5) plugins/opengl/src/paint.cpp (+4/-6) |
||||
To merge this branch: | bzr merge lp:~compiz-team/compiz/fix-1060804 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
jenkins | continuous-integration | Pending | |
Sam Spilsbury | Pending | ||
Review via email: mp+128622@code.launchpad.net |
This proposal supersedes a proposal from 2012-10-04.
Commit message
Fix numerous problems with invalid C/C++ code that prevent us from building
with clang/clang++.
(LP: #1060804)
Description of the change
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal | # |
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal | # |
I have a few questions:
1. Is there any way that we can forward declare some of the structs? I'd like to avoid over-using #include if we can, especially if we are just operating on pointer types.
2. What is __attribute_
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal | # |
Fixing the tests was fairly straightforward, it seems that clang does not like this:
static const Foo foo;
bar (&foo);
void bar (void *data)
{
Foo *foo = (Foo *) data;
foo->blah = 0;
}
Instead the const needs to be cast away at the call site or you just need to drop the const. Since this data is not really writable from elsewhere anyways and we return a const *, I just dropped the const on the static variable. I'm going to see if we can get forward declarations working - it should be possible.
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:3418
http://
Executed test runs:
FAILURE: http://
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal | # |
Okay, looking better.
The fact that C does not let you forward-declare typedef's is a bit of a pain. Right now in order to avoid massive header proliferation, I've just moved all of the typedefs to one header file per logical "package". This means that any time you add a new type, lots of stuff is going to be recompiled, which sucks, but its better than pulling in headers for types and functions and then lots of stuff recompiling when a function changes (even when that function isn't used).
It turns out that the stuff marked __attribute_
I'm still not sure if it even runs with clang. Last time I ran it, I had trouble with a bug similar to this one: http://
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:3420
http://
Executed test runs:
FAILURE: http://
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal | # |
Verified still builds. And test cases pass too. Clang and GCC.
Unity Merger (unity-merger) wrote : Posted in a previous version of this proposal | # |
The Jenkins job https:/
Not merging it.
Unity Merger (unity-merger) wrote : Posted in a previous version of this proposal | # |
The Jenkins job https:/
Not merging it.
Martin Mrazik (mrazik) wrote : Posted in a previous version of this proposal | # |
Maybe the last failures were due to low disk space. Trying to re-approve.
Unity Merger (unity-merger) wrote : Posted in a previous version of this proposal | # |
The Jenkins job https:/
Not merging it.
Martin Mrazik (mrazik) wrote : Posted in a previous version of this proposal | # |
Oh. The -j4 confused me. Its actually the same error as for the CI failures above:
/tmp/buildd/
Is this something that needs to be fixed on the jenkins side?
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal | # |
Needs fixing as above
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:3421
http://
Executed test runs:
FAILURE: http://
Daniel van Vugt (vanvugt) : Posted in a previous version of this proposal | # |
Unity Merger (unity-merger) wrote : Posted in a previous version of this proposal | # |
The Jenkins job https:/
Not merging it.
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal | # |
What? Same error still?...
[ 0%] In file included from /tmp/buildd/
/tmp/buildd/
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal | # |
Yeah, that's weird because CI is compiling it just fine. Maybe the automerger got the wrong revision?
Daniel van Vugt (vanvugt) : | # |
Daniel van Vugt (vanvugt) wrote : | # |
OK, merged.
Seems that I had to resubmit before Jenkins would use the latest revision.
Preview Diff
1 | === modified file 'cmake/CompizCommon.cmake' |
2 | --- cmake/CompizCommon.cmake 2012-09-12 10:19:47 +0000 |
3 | +++ cmake/CompizCommon.cmake 2012-10-09 03:07:19 +0000 |
4 | @@ -40,7 +40,7 @@ |
5 | ) |
6 | |
7 | # Almost everything is a shared library now, so almost everything needs -fPIC |
8 | -set (COMMON_FLAGS "-fPIC -Wall -Wl,-zdefs") |
9 | +set (COMMON_FLAGS "-fPIC -Wall") |
10 | |
11 | option (COMPIZ_DEPRECATED_WARNINGS "Warn about declarations marked deprecated" OFF) |
12 | if (NOT COMPIZ_DEPRECATED_WARNINGS) |
13 | @@ -65,6 +65,11 @@ |
14 | set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS}") |
15 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_FLAGS}") |
16 | |
17 | +set (COMMON_LINKER_FLAGS "-Wl,-zdefs") |
18 | +set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${COMMON_LINKER_FLAGS}") |
19 | +set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${COMMON_LINKER_FLAGS}") |
20 | +set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${COMMON_LINKER_FLAGS}") |
21 | + |
22 | if (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr) |
23 | set(IS_BZR_REPO 1) |
24 | elseif (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr) |
25 | |
26 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/CMakeLists.txt' |
27 | --- compizconfig/gsettings/gsettings_backend_shared/CMakeLists.txt 2012-09-12 08:35:51 +0000 |
28 | +++ compizconfig/gsettings/gsettings_backend_shared/CMakeLists.txt 2012-10-09 03:07:19 +0000 |
29 | @@ -5,6 +5,7 @@ |
30 | if (GSETTINGS_UTIL_FOUND) |
31 | |
32 | set (GSETTINGS_UTIL_LIB_INCLUDES |
33 | + ${CMAKE_CURRENT_SOURCE_DIR} |
34 | ${CMAKE_SOURCE_DIR}/compizconfig/integration/gnome/include |
35 | ${CMAKE_SOURCE_DIR}/compizconfig/integration/gnome/gconf/include |
36 | ${CMAKE_SOURCE_DIR}/compizconfig/integration/gnome/gsettings/include |
37 | |
38 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.h' |
39 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.h 2012-08-11 07:03:00 +0000 |
40 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.h 2012-10-09 03:07:19 +0000 |
41 | @@ -3,13 +3,11 @@ |
42 | |
43 | #include <ccs-defs.h> |
44 | #include <ccs-backend.h> |
45 | +#include <ccs_gsettings_backend_fwd.h> |
46 | #include <glib.h> |
47 | |
48 | COMPIZCONFIG_BEGIN_DECLS |
49 | |
50 | -typedef struct _CCSBackend CCSBackend; |
51 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
52 | - |
53 | Bool |
54 | ccsGSettingsBackendAttachNewToBackend (CCSBackend *backend, CCSContext *context); |
55 | |
56 | |
57 | === added file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_fwd.h' |
58 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_fwd.h 1970-01-01 00:00:00 +0000 |
59 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_fwd.h 2012-10-09 03:07:19 +0000 |
60 | @@ -0,0 +1,13 @@ |
61 | +#ifndef _COMPIZCONFIG_CCS_GSETTINGS_BACKEND_FWD_H |
62 | +#define _COMPIZCONFIG_CCS_GSETTINGS_BACKEND_FWD_H |
63 | + |
64 | +#include <ccs-defs.h> |
65 | + |
66 | +COMPIZCONFIG_BEGIN_DECLS |
67 | + |
68 | +typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
69 | +typedef struct _CCSGSettingsBackend CCSGSettingsBackend; |
70 | + |
71 | +COMPIZCONFIG_END_DECLS |
72 | + |
73 | +#endif |
74 | |
75 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_interface.h' |
76 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_interface.h 2012-08-17 01:39:34 +0000 |
77 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend_interface.h 2012-10-09 03:07:19 +0000 |
78 | @@ -3,17 +3,13 @@ |
79 | |
80 | #include <ccs-defs.h> |
81 | #include <ccs-object.h> |
82 | +#include <ccs-fwd.h> |
83 | +#include <ccs_gsettings_backend_fwd.h> |
84 | #include <glib.h> |
85 | |
86 | COMPIZCONFIG_BEGIN_DECLS |
87 | |
88 | -typedef struct _CCSBackend CCSBackend; |
89 | -typedef struct _CCSGSettingsBackend CCSGSettingsBackend; |
90 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
91 | typedef struct _CCSGSettingsBackendInterface CCSGSettingsBackendInterface; |
92 | -typedef struct _CCSSetting CCSSetting; |
93 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
94 | -typedef struct _CCSContext CCSContext; |
95 | |
96 | typedef CCSContext * (*CCSGSettingsBackendGetContext) (CCSBackend *); |
97 | typedef void (*CCSGSettingsBackendConnectToChangedSignal) (CCSBackend *, CCSGSettingsWrapper *); |
98 | |
99 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface.h' |
100 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface.h 2012-08-17 01:30:57 +0000 |
101 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface.h 2012-10-09 03:07:19 +0000 |
102 | @@ -5,11 +5,12 @@ |
103 | |
104 | COMPIZCONFIG_BEGIN_DECLS |
105 | |
106 | +#include <ccs-object.h> |
107 | +#include <ccs_gsettings_backend_fwd.h> |
108 | + |
109 | #include <glib.h> |
110 | #include <gio/gio.h> |
111 | -#include <ccs-object.h> |
112 | |
113 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
114 | typedef struct _CCSGSettingsWrapperInterface CCSGSettingsWrapperInterface; |
115 | |
116 | typedef void (*CCSGSettingsWrapperSetValue) (CCSGSettingsWrapper *, const char *, GVariant *); |
117 | |
118 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.c' |
119 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.c 2012-08-11 06:58:30 +0000 |
120 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.c 2012-10-09 03:07:19 +0000 |
121 | @@ -1,5 +1,7 @@ |
122 | #include <gio/gio.h> |
123 | +#include <ccs-object.h> |
124 | #include "ccs_gsettings_interface_wrapper.h" |
125 | +#include "ccs_gsettings_interface.h" |
126 | |
127 | typedef struct _CCSGSettingsWrapperPrivate CCSGSettingsWrapperPrivate; |
128 | |
129 | |
130 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.h' |
131 | --- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.h 2012-08-11 06:58:30 +0000 |
132 | +++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_interface_wrapper.h 2012-10-09 03:07:19 +0000 |
133 | @@ -2,11 +2,11 @@ |
134 | #define _CCS_GSETTINGS_INTERFACE_WRAPPER_H |
135 | |
136 | #include <ccs-defs.h> |
137 | +#include <ccs-fwd.h> |
138 | +#include <ccs_gsettings_backend_fwd.h> |
139 | |
140 | COMPIZCONFIG_BEGIN_DECLS |
141 | |
142 | -#include "ccs_gsettings_interface.h" |
143 | - |
144 | CCSGSettingsWrapper * |
145 | ccsGSettingsWrapperNewForSchemaWithPath (const char *schema, |
146 | const char *path, |
147 | |
148 | === modified file 'compizconfig/gsettings/gsettings_backend_shared/gsettings_util.h' |
149 | --- compizconfig/gsettings/gsettings_backend_shared/gsettings_util.h 2012-08-10 14:42:53 +0000 |
150 | +++ compizconfig/gsettings/gsettings_backend_shared/gsettings_util.h 2012-10-09 03:07:19 +0000 |
151 | @@ -2,7 +2,7 @@ |
152 | #define _COMPIZ_GSETTINGS_UTIL_H |
153 | |
154 | #include <ccs.h> |
155 | -#include <ccs-backend.h> |
156 | +#include <ccs_gsettings_backend_fwd.h> |
157 | |
158 | COMPIZCONFIG_BEGIN_DECLS |
159 | |
160 | @@ -10,8 +10,6 @@ |
161 | #include <glib-object.h> |
162 | #include <gio/gio.h> |
163 | |
164 | -#include "ccs_gsettings_interface.h" |
165 | - |
166 | /* some forward declarations */ |
167 | void |
168 | ccsGSettingsValueChanged (GSettings *settings, |
169 | @@ -30,12 +28,9 @@ |
170 | ccsGSettingsSetIntegration (CCSBackend *backend, CCSIntegration *integration); |
171 | |
172 | typedef struct _CCSGSettingsBackendPrivate CCSGSettingsBackendPrivate; |
173 | -typedef struct _CCSGSettingsBackendInterface CCSGSettingsBackendInterface; |
174 | |
175 | extern const CCSBackendInfo gsettingsBackendInfo; |
176 | |
177 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
178 | - |
179 | gchar * |
180 | getSchemaNameForPlugin (const char *plugin); |
181 | |
182 | |
183 | === modified file 'compizconfig/gsettings/tests/test_gsettings_conformance.cpp' |
184 | --- compizconfig/gsettings/tests/test_gsettings_conformance.cpp 2012-09-25 06:12:24 +0000 |
185 | +++ compizconfig/gsettings/tests/test_gsettings_conformance.cpp 2012-10-09 03:07:19 +0000 |
186 | @@ -77,7 +77,7 @@ |
187 | return &gsettingsBackendInfo; |
188 | } |
189 | |
190 | - CCSBackend * SetUp (CCSContext *context, CCSContextGMock *gmockContext) |
191 | + CCSBackend * BackendSetUp (CCSContext *context, CCSContextGMock *gmockContext) |
192 | { |
193 | CCSGSettingsBackendInterface *overloadedInterface = NULL; |
194 | |
195 | @@ -123,7 +123,7 @@ |
196 | return (CCSBackend *) mBackend; |
197 | } |
198 | |
199 | - void TearDown (CCSBackend *) |
200 | + void BackendTearDown (CCSBackend *) |
201 | { |
202 | GVariantBuilder noProfilesBuilder; |
203 | g_variant_builder_init (&noProfilesBuilder, G_VARIANT_TYPE ("as")); |
204 | |
205 | === modified file 'compizconfig/gsettings/tests/test_gsettings_tests.cpp' |
206 | --- compizconfig/gsettings/tests/test_gsettings_tests.cpp 2012-08-21 02:00:52 +0000 |
207 | +++ compizconfig/gsettings/tests/test_gsettings_tests.cpp 2012-10-09 03:07:19 +0000 |
208 | @@ -996,23 +996,8 @@ |
209 | { |
210 | return !(*this == l); |
211 | } |
212 | - |
213 | - friend bool operator== (GList *lhs, const GListContainerEqualityInterface &rhs); |
214 | - friend bool operator!= (GList *lhs, const GListContainerEqualityInterface &rhs); |
215 | }; |
216 | |
217 | - bool |
218 | - operator== (GList *lhs, const GListContainerEqualityInterface &rhs) |
219 | - { |
220 | - return rhs == lhs; |
221 | - } |
222 | - |
223 | - bool |
224 | - operator!= (GList *lhs, const GListContainerEqualityInterface &rhs) |
225 | - { |
226 | - return !(rhs == lhs); |
227 | - } |
228 | - |
229 | class GListContainerEqualityBase : |
230 | public GListContainerEqualityInterface |
231 | { |
232 | |
233 | === modified file 'compizconfig/gsettings/tests/test_gsettings_wrapper.cpp' |
234 | --- compizconfig/gsettings/tests/test_gsettings_wrapper.cpp 2012-08-11 07:49:19 +0000 |
235 | +++ compizconfig/gsettings/tests/test_gsettings_wrapper.cpp 2012-10-09 03:07:19 +0000 |
236 | @@ -8,9 +8,13 @@ |
237 | #include <boost/bind.hpp> |
238 | |
239 | #include <glib-object.h> |
240 | +#include <gio/gio.h> |
241 | + |
242 | +#include <ccs-object.h> |
243 | +#include <ccs_gsettings_interface_wrapper.h> |
244 | +#include <ccs_gsettings_interface.h> |
245 | |
246 | #include "test_gsettings_tests.h" |
247 | -#include <ccs_gsettings_interface_wrapper.h> |
248 | |
249 | using ::testing::NotNull; |
250 | using ::testing::Eq; |
251 | |
252 | === modified file 'compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting.h' |
253 | --- compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting.h 2012-08-17 06:38:07 +0000 |
254 | +++ compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting.h 2012-10-09 03:07:19 +0000 |
255 | @@ -2,15 +2,12 @@ |
256 | #define _CCS_GNOME_GCONF_INTEGRATED_SETTING_H |
257 | |
258 | #include <ccs-defs.h> |
259 | -#include <ccs-object.h> |
260 | +#include <ccs-fwd.h> |
261 | +#include <ccs_gnome_fwd.h> |
262 | +#include <gconf/gconf-client.h> |
263 | |
264 | COMPIZCONFIG_BEGIN_DECLS |
265 | |
266 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
267 | -typedef struct _CCSIntegratedSettingInfo CCSIntegratedSettingInfo; |
268 | -typedef struct _CCSGNOMEIntegratedSettingInfo CCSGNOMEIntegratedSettingInfo; |
269 | -typedef struct _GConfClient GConfClient; |
270 | - |
271 | /** |
272 | * @brief ccsGConfIntegratedSettingNew |
273 | * @param base a CCSGNOMEIntegratedSetting |
274 | |
275 | === modified file 'compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting_factory.h' |
276 | --- compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting_factory.h 2012-08-17 01:59:41 +0000 |
277 | +++ compizconfig/integration/gnome/gconf/include/ccs_gnome_integration_gconf_integrated_setting_factory.h 2012-10-09 03:07:19 +0000 |
278 | @@ -3,13 +3,12 @@ |
279 | |
280 | #include <ccs-defs.h> |
281 | #include <ccs-object.h> |
282 | +#include <ccs-fwd.h> |
283 | +#include <ccs_gnome_fwd.h> |
284 | +#include <gconf/gconf-client.h> |
285 | |
286 | COMPIZCONFIG_BEGIN_DECLS |
287 | |
288 | -typedef struct _CCSIntegratedSettingFactory CCSIntegratedSettingFactory; |
289 | -typedef struct _CCSGNOMEValueChangeData CCSGNOMEValueChangeData; |
290 | -typedef struct _GConfClient GConfClient; |
291 | - |
292 | /** |
293 | * @brief ccsGConfIntegratedSettingFactoryNew |
294 | * @param client an existing GConfClient or NULL |
295 | |
296 | === added file 'compizconfig/integration/gnome/gsettings/include/ccs_gnome_gsettings_fwd.h' |
297 | --- compizconfig/integration/gnome/gsettings/include/ccs_gnome_gsettings_fwd.h 1970-01-01 00:00:00 +0000 |
298 | +++ compizconfig/integration/gnome/gsettings/include/ccs_gnome_gsettings_fwd.h 2012-10-09 03:07:19 +0000 |
299 | @@ -0,0 +1,12 @@ |
300 | +#ifndef _CCS_GNOME_INTEGRATION_GSETTINGS_FWD_H |
301 | +#define _CCS_GNOME_INTEGRATION_GSETTINGS_FWD_H |
302 | + |
303 | +#include <ccs-defs.h> |
304 | + |
305 | +COMPIZCONFIG_BEGIN_DECLS |
306 | + |
307 | +typedef struct _CCSGNOMEIntegrationGSettingsWrapperFactory CCSGNOMEIntegrationGSettingsWrapperFactory; |
308 | + |
309 | +COMPIZCONFIG_END_DECLS |
310 | + |
311 | +#endif |
312 | |
313 | === modified file 'compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting.h' |
314 | --- compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting.h 2012-09-25 01:23:51 +0000 |
315 | +++ compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting.h 2012-10-09 03:07:19 +0000 |
316 | @@ -2,14 +2,12 @@ |
317 | #define _CCS_GNOME_GSETTINGS_INTEGRATED_SETTING_H |
318 | |
319 | #include <ccs-defs.h> |
320 | -#include <ccs-object.h> |
321 | +#include <ccs-fwd.h> |
322 | +#include <ccs_gnome_fwd.h> |
323 | +#include <ccs_gsettings_backend_fwd.h> |
324 | |
325 | COMPIZCONFIG_BEGIN_DECLS |
326 | |
327 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
328 | -typedef struct _CCSGNOMEIntegratedSettingInfo CCSGNOMEIntegratedSettingInfo; |
329 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
330 | - |
331 | /** |
332 | * @brief ccsGSettingsIntegratedSettingNew |
333 | * @param base |
334 | |
335 | === modified file 'compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting_factory.h' |
336 | --- compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting_factory.h 2012-09-25 06:12:24 +0000 |
337 | +++ compizconfig/integration/gnome/gsettings/include/ccs_gnome_integration_gsettings_integrated_setting_factory.h 2012-10-09 03:07:19 +0000 |
338 | @@ -2,20 +2,17 @@ |
339 | #define _CCS_GNOME_GCONF_INTEGRATED_SETTING_FACTORY_H |
340 | |
341 | #include <ccs-defs.h> |
342 | -#include <ccs-object.h> |
343 | +#include <ccs-fwd.h> |
344 | +#include <ccs_gnome_fwd.h> |
345 | +#include <ccs_gnome_gsettings_fwd.h> |
346 | +#include <gio/gio.h> |
347 | |
348 | COMPIZCONFIG_BEGIN_DECLS |
349 | |
350 | -typedef struct _CCSIntegratedSettingFactory CCSIntegratedSettingFactory; |
351 | -typedef struct _CCSGNOMEValueChangeData CCSGNOMEValueChangeData; |
352 | -typedef struct _CCSGSettingsWrapper CCSGSettingsWrapper; |
353 | -typedef struct _GSettings GSettings; |
354 | +typedef struct _CCSGNOMEIntegrationGSettingsWrapperFactoryInterface CCSGNOMEIntegrationGSettingsWrapperFactoryInterface; |
355 | |
356 | typedef void (*CCSGNOMEIntegrationGSettingsChangedCallback) (GSettings *, gchar *, gpointer); |
357 | |
358 | -typedef struct _CCSGNOMEIntegrationGSettingsWrapperFactory CCSGNOMEIntegrationGSettingsWrapperFactory; |
359 | -typedef struct _CCSGNOMEIntegrationGSettingsWrapperFactoryInterface CCSGNOMEIntegrationGSettingsWrapperFactoryInterface; |
360 | - |
361 | typedef CCSGSettingsWrapper * (*CCSGNOMEIntegrationGSettingsWrapperFactoryNewGSettingsWrapper) (CCSGNOMEIntegrationGSettingsWrapperFactory *, |
362 | const gchar *schema, |
363 | CCSGNOMEIntegrationGSettingsChangedCallback callback, |
364 | |
365 | === added file 'compizconfig/integration/gnome/include/ccs_gnome_fwd.h' |
366 | --- compizconfig/integration/gnome/include/ccs_gnome_fwd.h 1970-01-01 00:00:00 +0000 |
367 | +++ compizconfig/integration/gnome/include/ccs_gnome_fwd.h 2012-10-09 03:07:19 +0000 |
368 | @@ -0,0 +1,13 @@ |
369 | +#ifndef _CCS_GNOME_INTEGRATION_FWD_H |
370 | +#define _CCS_GNOME_INTEGRATION_FWD_H |
371 | + |
372 | +#include <ccs-defs.h> |
373 | + |
374 | +COMPIZCONFIG_BEGIN_DECLS |
375 | + |
376 | +typedef struct _CCSGNOMEIntegratedSettingInfo CCSGNOMEIntegratedSettingInfo; |
377 | +typedef struct _CCSGNOMEValueChangeData CCSGNOMEValueChangeData; |
378 | + |
379 | +COMPIZCONFIG_END_DECLS |
380 | + |
381 | +#endif |
382 | |
383 | === modified file 'compizconfig/integration/gnome/include/ccs_gnome_integrated_setting.h' |
384 | --- compizconfig/integration/gnome/include/ccs_gnome_integrated_setting.h 2012-09-23 07:33:11 +0000 |
385 | +++ compizconfig/integration/gnome/include/ccs_gnome_integrated_setting.h 2012-10-09 03:07:19 +0000 |
386 | @@ -2,15 +2,13 @@ |
387 | #define _CCS_GNOME_INTEGRATED_SETTING_H |
388 | |
389 | #include <ccs-defs.h> |
390 | -#include <ccs-object.h> |
391 | +#include <ccs-fwd.h> |
392 | +#include <ccs_gnome_fwd.h> |
393 | |
394 | #include "ccs_gnome_integration_types.h" |
395 | |
396 | COMPIZCONFIG_BEGIN_DECLS |
397 | |
398 | -typedef struct _CCSIntegratedSettingInfo CCSIntegratedSettingInfo; |
399 | - |
400 | -typedef struct _CCSGNOMEIntegratedSettingInfo CCSGNOMEIntegratedSettingInfo; |
401 | typedef struct _CCSGNOMEIntegratedSettingInfoInterface CCSGNOMEIntegratedSettingInfoInterface; |
402 | |
403 | typedef SpecialOptionType (*CCSGNOMEIntegratedSettingInfoGetSpecialOptionType) (CCSGNOMEIntegratedSettingInfo *); |
404 | |
405 | === modified file 'compizconfig/integration/gnome/include/ccs_gnome_integration.h' |
406 | --- compizconfig/integration/gnome/include/ccs_gnome_integration.h 2012-08-17 01:59:49 +0000 |
407 | +++ compizconfig/integration/gnome/include/ccs_gnome_integration.h 2012-10-09 03:07:19 +0000 |
408 | @@ -2,17 +2,19 @@ |
409 | #define _CCS_COMPIZCONFIG_GNOME_GCONF_INTEGRATION |
410 | |
411 | #include <ccs-defs.h> |
412 | +#include <ccs-fwd.h> |
413 | +#include <ccs_gnome_fwd.h> |
414 | #include "ccs_gnome_integration_types.h" |
415 | |
416 | COMPIZCONFIG_BEGIN_DECLS |
417 | |
418 | -typedef struct _CCSGNOMEValueChangeData |
419 | +struct _CCSGNOMEValueChangeData |
420 | { |
421 | CCSIntegration *integration; |
422 | CCSIntegratedSettingsStorage *storage; |
423 | CCSIntegratedSettingFactory *factory; |
424 | CCSContext *context; |
425 | -} CCSGNOMEValueChangeData; |
426 | +}; |
427 | |
428 | /** |
429 | * @brief ccsGNOMEIntegrationBackendNew |
430 | |
431 | === modified file 'compizconfig/integration/gnome/include/ccs_gnome_integration_types.h' |
432 | --- compizconfig/integration/gnome/include/ccs_gnome_integration_types.h 2012-09-23 04:35:00 +0000 |
433 | +++ compizconfig/integration/gnome/include/ccs_gnome_integration_types.h 2012-10-09 03:07:19 +0000 |
434 | @@ -5,15 +5,6 @@ |
435 | |
436 | COMPIZCONFIG_BEGIN_DECLS |
437 | |
438 | -typedef struct _CCSBackend CCSBackend; |
439 | -typedef struct _CCSContext CCSContext; |
440 | -typedef struct _CCSObjectAllocationInterface CCSObjectAllocationInterface; |
441 | -typedef struct _CCSIntegration CCSIntegration; |
442 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
443 | -typedef struct _CCSIntegratedSettingFactory CCSIntegratedSettingFactory; |
444 | -typedef struct _CCSIntegratedSettingsStorage CCSIntegratedSettingsStorage; |
445 | -typedef struct _GConfClient GConfClient; |
446 | - |
447 | typedef enum { |
448 | OptionInt, |
449 | OptionBool, |
450 | |
451 | === modified file 'compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c' |
452 | --- compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c 2012-09-25 01:23:51 +0000 |
453 | +++ compizconfig/integration/gnome/src/ccs_gnome_integration_constants.c 2012-10-09 03:07:19 +0000 |
454 | @@ -447,7 +447,7 @@ |
455 | ccsGNOMEGSettingsWrapperQuarks () |
456 | { |
457 | static GOnce initIntegratedSchemaQuarks = G_ONCE_INIT; |
458 | - static const CCSGSettingsWrapperIntegratedSchemasQuarks quarks; |
459 | + static CCSGSettingsWrapperIntegratedSchemasQuarks quarks; |
460 | |
461 | g_once (&initIntegratedSchemaQuarks, ccsGNOMEGSettingsIntegrationInitializeIntegratedSchemasQuarks, (gpointer) &quarks); |
462 | |
463 | |
464 | === modified file 'compizconfig/integration/gnome/tests/compizconfig_ccs_mock_gnome_integrated_setting_composition.h' |
465 | --- compizconfig/integration/gnome/tests/compizconfig_ccs_mock_gnome_integrated_setting_composition.h 2012-09-23 07:33:11 +0000 |
466 | +++ compizconfig/integration/gnome/tests/compizconfig_ccs_mock_gnome_integrated_setting_composition.h 2012-10-09 03:07:19 +0000 |
467 | @@ -23,13 +23,12 @@ |
468 | #ifndef _COMPIZCONFIG_CCS_MOCK_GNOME_INTEGRATED_SETTING_COMPOSITION_H |
469 | #define _COMPIZCONFIG_CCS_MOCK_GNOME_INTEGRATED_SETTING_COMPOSITION_H |
470 | |
471 | +#include <ccs-defs.h> |
472 | +#include <ccs-fwd.h> |
473 | +#include <ccs_gnome_fwd.h> |
474 | + |
475 | COMPIZCONFIG_BEGIN_DECLS |
476 | |
477 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
478 | -typedef struct _CCSGNOMEIntegratedSettingInfo CCSGNOMEIntegratedSettingInfo; |
479 | -typedef struct _CCSIntegratedSettingInfo CCSIntegratedSettingInfo; |
480 | -typedef struct _CCSObjectAllocationInterface CCSObjectAllocationInterface; |
481 | - |
482 | CCSIntegratedSetting * |
483 | ccsMockCompositionIntegratedSettingNew (CCSIntegratedSetting *integratedSetting, |
484 | CCSGNOMEIntegratedSettingInfo *gnomeInfo, |
485 | |
486 | === modified file 'compizconfig/integration/gnome/tests/compizconfig_test_ccs_gnome_integration.cpp' |
487 | --- compizconfig/integration/gnome/tests/compizconfig_test_ccs_gnome_integration.cpp 2012-09-25 03:42:20 +0000 |
488 | +++ compizconfig/integration/gnome/tests/compizconfig_test_ccs_gnome_integration.cpp 2012-10-09 03:07:19 +0000 |
489 | @@ -176,24 +176,12 @@ |
490 | return std::tr1::get <0> (integrationWithMocks); |
491 | } |
492 | |
493 | - CCSBackendGMock & |
494 | - MockBackend (CCSGNOMEIntegrationWithMocks &integrationWithMocks) |
495 | - { |
496 | - return std::tr1::get <1> (integrationWithMocks); |
497 | - } |
498 | - |
499 | CCSIntegratedSettingsStorageGMock & |
500 | MockStorage (CCSGNOMEIntegrationWithMocks &integrationWithMocks) |
501 | { |
502 | return std::tr1::get <2> (integrationWithMocks); |
503 | } |
504 | |
505 | - CCSIntegratedSettingFactoryGMock & |
506 | - MockFactory (CCSGNOMEIntegrationWithMocks &integrationWithMocks) |
507 | - { |
508 | - return std::tr1::get <3> (integrationWithMocks); |
509 | - } |
510 | - |
511 | void |
512 | IgnoreRegistration (CCSIntegratedSettingsStorageGMock &storage) |
513 | { |
514 | @@ -519,7 +507,7 @@ |
515 | mButtonValue.edgeMask = 0; |
516 | } |
517 | |
518 | - virtual void SetUp (CCSGNOMEIntegrationWithMocks &integration) |
519 | + virtual void GnomeSetUp (CCSGNOMEIntegrationWithMocks &integration) |
520 | { |
521 | CCSIntegratedSettingList integratedSettingsMBM = |
522 | *mIntegratedSettingsMBM; |
523 | @@ -562,7 +550,7 @@ |
524 | vMBM->value.asString = strdup (GNOME_MOUSE_BUTTON_MODIFIERS_STRING.c_str ()); |
525 | |
526 | CCSGNOMEIntegrationTestReadIntegrated::SetUp (); |
527 | - CCSGNOMEIntegrationTestWithMocksIntegratedMouseButtonModifiers::SetUp (mIntegration); |
528 | + CCSGNOMEIntegrationTestWithMocksIntegratedMouseButtonModifiers::GnomeSetUp (mIntegration); |
529 | |
530 | EXPECT_CALL (mSettingMock, getButton (_)) |
531 | .WillOnce (DoAll ( |
532 | @@ -619,7 +607,7 @@ |
533 | virtual void SetUp () |
534 | { |
535 | CCSGNOMEIntegrationTestWriteIntegrated::SetUp (); |
536 | - CCSGNOMEIntegrationTestWithMocksIntegratedMouseButtonModifiers::SetUp (mIntegration); |
537 | + CCSGNOMEIntegrationTestWithMocksIntegratedMouseButtonModifiers::GnomeSetUp (mIntegration); |
538 | } |
539 | |
540 | protected: |
541 | |
542 | === modified file 'compizconfig/libcompizconfig/include/CMakeLists.txt' |
543 | --- compizconfig/libcompizconfig/include/CMakeLists.txt 2012-09-03 07:19:30 +0000 |
544 | +++ compizconfig/libcompizconfig/include/CMakeLists.txt 2012-10-09 03:07:19 +0000 |
545 | @@ -1,6 +1,7 @@ |
546 | set (_headers |
547 | ccs-backend.h |
548 | ccs-defs.h |
549 | + ccs-fwd.h |
550 | ccs-list.h |
551 | ccs-object.h |
552 | ccs-string.h |
553 | |
554 | === modified file 'compizconfig/libcompizconfig/include/ccs-backend.h' |
555 | --- compizconfig/libcompizconfig/include/ccs-backend.h 2012-08-17 07:33:02 +0000 |
556 | +++ compizconfig/libcompizconfig/include/ccs-backend.h 2012-10-09 03:07:19 +0000 |
557 | @@ -22,6 +22,7 @@ |
558 | #ifndef CCS_BACKEND_H |
559 | #define CCS_BACKEND_H |
560 | |
561 | +#include <ccs-fwd.h> |
562 | #include <ccs-object.h> |
563 | #include <ccs-string.h> |
564 | #include <ccs-list.h> |
565 | @@ -29,19 +30,6 @@ |
566 | |
567 | COMPIZCONFIG_BEGIN_DECLS |
568 | |
569 | -typedef struct _CCSSetting CCSSetting; |
570 | -typedef struct _CCSPlugin CCSPlugin; |
571 | -typedef struct _CCSContext CCSContext; |
572 | -typedef struct _CCSBackend CCSBackend; |
573 | -typedef struct _CCSBackendInfo CCSBackendInfo; |
574 | -typedef struct _CCSBackendPrivate CCSBackendPrivate; |
575 | -typedef struct _CCSBackendInterface CCSBackendInterface; |
576 | -typedef struct _CCSIntegration CCSIntegration; |
577 | - |
578 | -typedef struct _CCSSettingValue CCSSettingValue; |
579 | -typedef enum _CCSSettingType CCSSettingType; |
580 | - |
581 | -typedef struct _CCSIntegratedSettingInfo CCSIntegratedSettingInfo; |
582 | typedef struct _CCSIntegratedSettingInfoInterface CCSIntegratedSettingInfoInterface; |
583 | |
584 | typedef const char * (*CCSIntegratedSettingInfoPluginName) (CCSIntegratedSettingInfo *); |
585 | @@ -68,8 +56,7 @@ |
586 | CCSObject object; |
587 | }; |
588 | |
589 | -typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
590 | -typedef struct _CCSIntegratedSettingInterface CCSIntegratedSettingInterface; |
591 | +typedef struct _CCSIntegratedSettingInterface CCSIntegratedSettingInterface; |
592 | |
593 | typedef CCSSettingValue * (*CCSIntegratedSettingReadValue) (CCSIntegratedSetting *, CCSSettingType); |
594 | typedef void (*CCSIntegratedSettingWriteValue) (CCSIntegratedSetting *, CCSSettingValue *, CCSSettingType); |
595 | @@ -131,7 +118,6 @@ |
596 | CCSSettingType type, |
597 | CCSObjectAllocationInterface *ai); |
598 | |
599 | -typedef struct _CCSIntegratedSettingsStorage CCSIntegratedSettingsStorage; |
600 | typedef struct _CCSIntegratedSettingsStorageInterface CCSIntegratedSettingsStorageInterface; |
601 | |
602 | /** |
603 | @@ -219,7 +205,7 @@ |
604 | CCSIntegratedSettingsStorage * |
605 | ccsIntegratedSettingsStorageDefaultImplNew (CCSObjectAllocationInterface *ai); |
606 | |
607 | -typedef struct _CCSIntegratedSettingFactory CCSIntegratedSettingFactory; |
608 | + |
609 | typedef struct _CCSIntegratedSettingFactoryInterface CCSIntegratedSettingFactoryInterface; |
610 | |
611 | typedef CCSIntegratedSetting * (*CCSIntegratedSettingFactoryCreateIntegratedSettingForCCSSettingNameAndType) (CCSIntegratedSettingFactory *factory, |
612 | @@ -265,8 +251,7 @@ |
613 | void |
614 | ccsFreeIntegratedSettingFactory (CCSIntegratedSettingFactory *factory); |
615 | |
616 | -typedef struct _CCSIntegration CCSIntegration; |
617 | -typedef struct _CCSIntegrationInterface CCSIntegrationInterface; |
618 | +typedef struct _CCSIntegrationInterface CCSIntegrationInterface; |
619 | |
620 | typedef CCSIntegratedSetting * (*CCSIntegrationGetIntegratedSetting) (CCSIntegration *integration, |
621 | const char *pluginName, |
622 | @@ -338,6 +323,8 @@ |
623 | CCSIntegration * |
624 | ccsNullIntegrationBackendNew (CCSObjectAllocationInterface *ai); |
625 | |
626 | +typedef struct _CCSBackendInterface CCSBackendInterface; |
627 | + |
628 | /** |
629 | * @brief CCSBackend |
630 | * |
631 | @@ -497,10 +484,7 @@ |
632 | void ccsBackendSetIntegration (CCSBackend *backend, CCSIntegration *integration); |
633 | void ccsFreeBackend (CCSBackend *backend); |
634 | |
635 | -typedef struct _CCSDynamicBackend CCSDynamicBackend; |
636 | -typedef struct _CCSDynamicBackendPrivate CCSDynamicBackendPrivate; |
637 | typedef struct _CCSDynamicBackendInterface CCSDynamicBackendInterface; |
638 | -typedef struct _CCSInterfaceTable CCSInterfaceTable; |
639 | |
640 | /** |
641 | * @brief The _CCSDynamicBackend struct |
642 | |
643 | === added file 'compizconfig/libcompizconfig/include/ccs-fwd.h' |
644 | --- compizconfig/libcompizconfig/include/ccs-fwd.h 1970-01-01 00:00:00 +0000 |
645 | +++ compizconfig/libcompizconfig/include/ccs-fwd.h 2012-10-09 03:07:19 +0000 |
646 | @@ -0,0 +1,48 @@ |
647 | +/* |
648 | + * Compiz configuration system library |
649 | + * |
650 | + * Copyright (C) 2007 Dennis Kasprzyk <onestone@beryl-project.org> |
651 | + * Copyright (C) 2007 Danny Baumann <maniac@beryl-project.org> |
652 | + * |
653 | + * This library is free software; you can redistribute it and/or |
654 | + * modify it under the terms of the GNU Lesser General Public |
655 | + * License as published by the Free Software Foundation; either |
656 | + * version 2.1 of the License, or (at your option) any later version. |
657 | + |
658 | + * This library is distributed in the hope that it will be useful, |
659 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
660 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
661 | + * Lesser General Public License for more details. |
662 | + |
663 | + * You should have received a copy of the GNU Lesser General Public |
664 | + * License along with this library; if not, write to the Free Software |
665 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
666 | + */ |
667 | + |
668 | +#include <ccs-defs.h> |
669 | + |
670 | +#ifndef _CSS_FWD_H |
671 | +#define _CSS_FWD_H |
672 | + |
673 | +COMPIZCONFIG_BEGIN_DECLS |
674 | + |
675 | +typedef struct _CCSObject CCSObject; |
676 | +typedef struct _CCSObjectAllocationInterface CCSObjectAllocationInterface; |
677 | +typedef struct _CCSSetting CCSSetting; |
678 | +typedef struct _CCSPlugin CCSPlugin; |
679 | +typedef struct _CCSContext CCSContext; |
680 | +typedef struct _CCSBackend CCSBackend; |
681 | +typedef struct _CCSBackendInfo CCSBackendInfo; |
682 | +typedef struct _CCSDynamicBackend CCSDynamicBackend; |
683 | +typedef struct _CCSIntegration CCSIntegration; |
684 | +typedef struct _CCSSettingValue CCSSettingValue; |
685 | +typedef struct _CCSIntegratedSettingInfo CCSIntegratedSettingInfo; |
686 | +typedef struct _CCSIntegratedSetting CCSIntegratedSetting; |
687 | +typedef struct _CCSIntegratedSettingFactory CCSIntegratedSettingFactory; |
688 | +typedef struct _CCSIntegratedSettingsStorage CCSIntegratedSettingsStorage; |
689 | +typedef struct _CCSInterfaceTable CCSInterfaceTable; |
690 | + |
691 | +COMPIZCONFIG_END_DECLS |
692 | + |
693 | +#endif |
694 | + |
695 | |
696 | === modified file 'compizconfig/libcompizconfig/include/ccs-object.h' |
697 | --- compizconfig/libcompizconfig/include/ccs-object.h 2012-08-16 04:13:30 +0000 |
698 | +++ compizconfig/libcompizconfig/include/ccs-object.h 2012-10-09 03:07:19 +0000 |
699 | @@ -24,12 +24,12 @@ |
700 | #define _CCS_OBJECT_H |
701 | |
702 | #include <ccs-defs.h> |
703 | +#include <ccs-fwd.h> |
704 | |
705 | COMPIZCONFIG_BEGIN_DECLS |
706 | |
707 | typedef struct _CCSInterface CCSInterface; /* Dummy typedef */ |
708 | typedef struct _CCSPrivate CCSPrivate; /* Dummy typedef */ |
709 | -typedef struct _CCSObject CCSObject; |
710 | |
711 | typedef void * (*reallocObjectProc) (void *, void *, size_t); |
712 | typedef void * (*mallocObjectProc) (void *, size_t); |
713 | @@ -50,14 +50,14 @@ |
714 | * use this interface as a means to allocate their own data so |
715 | * that tests for those objects can test allocation failures |
716 | */ |
717 | -typedef struct _CCSObjectAllocationInterface |
718 | +struct _CCSObjectAllocationInterface |
719 | { |
720 | reallocObjectProc realloc_; |
721 | mallocObjectProc malloc_; |
722 | callocObjectProc calloc_; |
723 | freeObjectProc free_; |
724 | void *allocator; |
725 | -} CCSObjectAllocationInterface; |
726 | +}; |
727 | |
728 | extern CCSObjectAllocationInterface ccsDefaultObjectAllocator; |
729 | |
730 | |
731 | === modified file 'compizconfig/libcompizconfig/include/ccs.h' |
732 | --- compizconfig/libcompizconfig/include/ccs.h 2012-09-25 01:26:54 +0000 |
733 | +++ compizconfig/libcompizconfig/include/ccs.h 2012-10-09 03:07:19 +0000 |
734 | @@ -69,15 +69,10 @@ |
735 | |
736 | void ccsLog (const char *domain, CCSLogLevel level, const char *fmt, ...); |
737 | |
738 | -typedef struct _CCSContext CCSContext; |
739 | -typedef struct _CCSPlugin CCSPlugin; |
740 | -typedef struct _CCSSetting CCSSetting; |
741 | typedef struct _CCSGroup CCSGroup; |
742 | typedef struct _CCSSubGroup CCSSubGroup; |
743 | typedef struct _CCSPluginCategory CCSPluginCategory; |
744 | -typedef struct _CCSSettingValue CCSSettingValue; |
745 | typedef struct _CCSPluginConflict CCSPluginConflict; |
746 | -typedef struct _CCSBackendInfo CCSBackendInfo; |
747 | typedef struct _CCSIntDesc CCSIntDesc; |
748 | typedef struct _CCSStrRestriction CCSStrRestriction; |
749 | typedef struct _CCSStrExtension CCSStrExtension; |
750 | @@ -106,11 +101,9 @@ |
751 | CCSREF_HDR (StrRestriction, CCSStrRestriction) |
752 | CCSREF_HDR (StrExtension, CCSStrExtension) |
753 | |
754 | -typedef struct _CCSInterfaceTable CCSInterfaceTable; |
755 | typedef struct _CCSContextInterface CCSContextInterface; |
756 | typedef struct _CCSPluginInterface CCSPluginInterface; |
757 | typedef struct _CCSSettingInterface CCSSettingInterface; |
758 | -typedef struct _CCSDynamicBackendInterface CCSDynamicBackendInterface; |
759 | |
760 | struct _CCSInterfaceTable |
761 | { |
762 | |
763 | === modified file 'compizconfig/libcompizconfig/src/ccs_settings_upgrade_internal.h' |
764 | --- compizconfig/libcompizconfig/src/ccs_settings_upgrade_internal.h 2012-09-10 01:06:55 +0000 |
765 | +++ compizconfig/libcompizconfig/src/ccs_settings_upgrade_internal.h 2012-10-09 03:07:19 +0000 |
766 | @@ -23,12 +23,11 @@ |
767 | #ifndef _COMPIZCONFIG_CCS_SETTINGS_UPGRADE_INTERNAL_H |
768 | #define _COMPIZCONFIG_CCS_SETTINGS_UPGRADE_INTERNAL_H |
769 | |
770 | -#include "ccs-defs.h" |
771 | +#include <ccs-defs.h> |
772 | +#include <ccs.h> |
773 | |
774 | COMPIZCONFIG_BEGIN_DECLS |
775 | |
776 | -typedef struct _CCSSettingList * CCSSettingList; |
777 | - |
778 | Bool |
779 | ccsUpgradeGetDomainNumAndProfile (const char *name, |
780 | char **domain, |
781 | |
782 | === modified file 'compizconfig/libcompizconfig/src/ccs_text_file.h' |
783 | --- compizconfig/libcompizconfig/src/ccs_text_file.h 2012-09-10 01:26:26 +0000 |
784 | +++ compizconfig/libcompizconfig/src/ccs_text_file.h 2012-10-09 03:07:19 +0000 |
785 | @@ -26,12 +26,11 @@ |
786 | #define CCS_TEXT_FILE_H |
787 | |
788 | #include <ccs-defs.h> |
789 | +#include <ccs-object.h> |
790 | +#include "ccs_text_file_interface.h" |
791 | |
792 | COMPIZCONFIG_BEGIN_DECLS |
793 | |
794 | -typedef struct _CCSTextFile CCSTextFile; |
795 | -typedef struct _CCSObjectAllocationInterface CCSObjectAllocationInterface; |
796 | - |
797 | typedef enum _CCSTextFileOpenMode |
798 | { |
799 | ReadOnly = 1, |
800 | |
801 | === modified file 'compizconfig/libcompizconfig/tests/compizconfig_test_ccs_mock_backend_conformance.cpp' |
802 | --- compizconfig/libcompizconfig/tests/compizconfig_test_ccs_mock_backend_conformance.cpp 2012-09-22 03:59:35 +0000 |
803 | +++ compizconfig/libcompizconfig/tests/compizconfig_test_ccs_mock_backend_conformance.cpp 2012-10-09 03:07:19 +0000 |
804 | @@ -251,7 +251,7 @@ |
805 | |
806 | public: |
807 | |
808 | - CCSBackend * SetUp (CCSContext *context, CCSContextGMock *gmockContext) |
809 | + CCSBackend * BackendSetUp (CCSContext *context, CCSContextGMock *gmockContext) |
810 | { |
811 | mContext = context; |
812 | mBackend = ccsMockBackendNew (); |
813 | @@ -295,7 +295,7 @@ |
814 | return &mockBackendInfo; |
815 | } |
816 | |
817 | - void TearDown (CCSBackend *backend) |
818 | + void BackendTearDown (CCSBackend *backend) |
819 | { |
820 | ccsFreeMockBackend (backend); |
821 | } |
822 | |
823 | === modified file 'compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp' |
824 | --- compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp 2012-09-23 16:46:19 +0000 |
825 | +++ compizconfig/libcompizconfig/tests/compizconfig_test_ccs_settings_upgrade_internal.cpp 2012-10-09 03:07:19 +0000 |
826 | @@ -568,23 +568,11 @@ |
827 | } |
828 | |
829 | void |
830 | - ccsStringListDeepFree (CCSStringList list) |
831 | - { |
832 | - ccsStringListFree (list, TRUE); |
833 | - } |
834 | - |
835 | - void |
836 | ccsSettingValueListDeepFree (CCSSettingValueList list) |
837 | { |
838 | ccsSettingValueListFree (list, TRUE); |
839 | } |
840 | |
841 | - void |
842 | - ccsSettingValueListShallowFree (CCSSettingValueList list) |
843 | - { |
844 | - ccsSettingValueListFree (list, FALSE); |
845 | - } |
846 | - |
847 | typedef boost::shared_ptr <cc::ListWrapper <CCSStringList, CCSString *> > CCSStringListWrapperPtr; |
848 | |
849 | CCSStringListWrapperPtr |
850 | |
851 | === modified file 'compizconfig/tests/compizconfig_backend_concept_test.h' |
852 | --- compizconfig/tests/compizconfig_backend_concept_test.h 2012-09-22 03:59:35 +0000 |
853 | +++ compizconfig/tests/compizconfig_backend_concept_test.h 2012-10-09 03:07:19 +0000 |
854 | @@ -23,6 +23,18 @@ |
855 | #ifndef _COMPIZCONFIG_CCS_BACKEND_CONCEPT_TEST |
856 | #define _COMPIZCONFIG_CCS_BACKEND_CONCEPT_TEST |
857 | |
858 | +#ifdef __clang__ |
859 | +#include <boost/version.hpp> |
860 | +#if BOOST_VERSION < 104700 |
861 | +#error "Boost 1.47 or later is required (http://clang.llvm.org/compatibility.html#deleted-special-func)" |
862 | +#endif |
863 | +/* Work around a bug in clang which marks functions used by |
864 | + * uninstantiated templates as unused */ |
865 | +#define COMPIZ_TEMPLATE_EXPECTATION_CHECK COMPIZ_TEMPLATE_EXPECTATION_CHECK |
866 | +#else |
867 | +#define COMPIZ_TEMPLATE_EXPECTATION_CHECK |
868 | +#endif |
869 | + |
870 | #include <list> |
871 | |
872 | #include <boost/variant.hpp> |
873 | @@ -188,14 +200,6 @@ |
874 | using ::testing::AtLeast; |
875 | using ::testing::NiceMock; |
876 | |
877 | -namespace |
878 | -{ |
879 | - bool ccsStringCmp (const CCSString &a, const CCSString &b) |
880 | - { |
881 | - return std::string (a.value) == b.value; |
882 | - } |
883 | -} |
884 | - |
885 | namespace cci = compiz::config::impl; |
886 | namespace cc = compiz::config; |
887 | |
888 | @@ -209,294 +213,6 @@ |
889 | unsigned int, |
890 | cci::SettingValueListWrapper::Ptr> VariantTypes; |
891 | |
892 | -namespace |
893 | -{ |
894 | - |
895 | -typedef boost::function <void ()> WriteFunc; |
896 | - |
897 | -Bool boolToBool (bool v) { return v ? TRUE : FALSE; } |
898 | - |
899 | -CCSSettingGMock * getSettingGMockFromSetting (const boost::shared_ptr <CCSSetting> &setting) { return (CCSSettingGMock *) ccsObjectGetPrivate (setting.get ()); } |
900 | - |
901 | -void SetIntWriteExpectation (const std::string &plugin, |
902 | - const std::string &key, |
903 | - const VariantTypes &value, |
904 | - const boost::shared_ptr <CCSSetting> &setting, |
905 | - const WriteFunc &write, |
906 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
907 | -{ |
908 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
909 | - EXPECT_CALL (*gmock, getInt (_)).WillRepeatedly (DoAll ( |
910 | - SetArgPointee <0> ( |
911 | - boost::get <int> (value)), |
912 | - Return (TRUE))); |
913 | - write (); |
914 | - EXPECT_EQ (env->ReadIntegerAtKey (plugin, key), boost::get <int> (value)); |
915 | -} |
916 | - |
917 | -void SetBoolWriteExpectation (const std::string &plugin, |
918 | - const std::string &key, |
919 | - const VariantTypes &value, |
920 | - const boost::shared_ptr <CCSSetting> &setting, |
921 | - const WriteFunc &write, |
922 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
923 | -{ |
924 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
925 | - EXPECT_CALL (*gmock, getBool (_)).WillRepeatedly (DoAll ( |
926 | - SetArgPointee <0> ( |
927 | - boolToBool (boost::get <bool> (value))), |
928 | - Return (TRUE))); |
929 | - write (); |
930 | - |
931 | - bool v (boost::get <bool> (value)); |
932 | - |
933 | - if (v) |
934 | - EXPECT_THAT (env->ReadBoolAtKey (plugin, key), IsTrue ()); |
935 | - else |
936 | - EXPECT_THAT (env->ReadBoolAtKey (plugin, key), IsFalse ()); |
937 | -} |
938 | - |
939 | -void SetFloatWriteExpectation (const std::string &plugin, |
940 | - const std::string &key, |
941 | - const VariantTypes &value, |
942 | - const boost::shared_ptr <CCSSetting> &setting, |
943 | - const WriteFunc &write, |
944 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
945 | -{ |
946 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
947 | - EXPECT_CALL (*gmock, getFloat (_)).WillRepeatedly (DoAll ( |
948 | - SetArgPointee <0> ( |
949 | - boost::get <float> (value)), |
950 | - Return (TRUE))); |
951 | - write (); |
952 | - EXPECT_EQ (env->ReadFloatAtKey (plugin, key), boost::get <float> (value)); |
953 | -} |
954 | - |
955 | -void SetStringWriteExpectation (const std::string &plugin, |
956 | - const std::string &key, |
957 | - const VariantTypes &value, |
958 | - const boost::shared_ptr <CCSSetting> &setting, |
959 | - const WriteFunc &write, |
960 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
961 | -{ |
962 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
963 | - EXPECT_CALL (*gmock, getString (_)).WillRepeatedly (DoAll ( |
964 | - SetArgPointee <0> ( |
965 | - const_cast <char *> (boost::get <const char *> (value))), |
966 | - Return (TRUE))); |
967 | - write (); |
968 | - EXPECT_EQ (std::string (env->ReadStringAtKey (plugin, key)), std::string (boost::get <const char *> (value))); |
969 | -} |
970 | - |
971 | -void SetColorWriteExpectation (const std::string &plugin, |
972 | - const std::string &key, |
973 | - const VariantTypes &value, |
974 | - const boost::shared_ptr <CCSSetting> &setting, |
975 | - const WriteFunc &write, |
976 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
977 | -{ |
978 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
979 | - EXPECT_CALL (*gmock, getColor (_)).WillRepeatedly (DoAll ( |
980 | - SetArgPointee <0> ( |
981 | - boost::get <CCSSettingColorValue> (value)), |
982 | - Return (TRUE))); |
983 | - write (); |
984 | - |
985 | - EXPECT_EQ (env->ReadColorAtKey (plugin, key), boost::get <CCSSettingColorValue> (value)); |
986 | -} |
987 | - |
988 | -void SetKeyWriteExpectation (const std::string &plugin, |
989 | - const std::string &key, |
990 | - const VariantTypes &value, |
991 | - const boost::shared_ptr <CCSSetting> &setting, |
992 | - const WriteFunc &write, |
993 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
994 | -{ |
995 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
996 | - EXPECT_CALL (*gmock, getKey (_)).WillRepeatedly (DoAll ( |
997 | - SetArgPointee <0> ( |
998 | - boost::get <CCSSettingKeyValue> (value)), |
999 | - Return (TRUE))); |
1000 | - write (); |
1001 | - EXPECT_EQ (env->ReadKeyAtKey (plugin, key), boost::get <CCSSettingKeyValue> (value)); |
1002 | -} |
1003 | - |
1004 | -void SetButtonWriteExpectation (const std::string &plugin, |
1005 | - const std::string &key, |
1006 | - const VariantTypes &value, |
1007 | - const boost::shared_ptr <CCSSetting> &setting, |
1008 | - const WriteFunc &write, |
1009 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
1010 | -{ |
1011 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
1012 | - EXPECT_CALL (*gmock, getButton (_)).WillRepeatedly (DoAll ( |
1013 | - SetArgPointee <0> ( |
1014 | - boost::get <CCSSettingButtonValue> (value)), |
1015 | - Return (TRUE))); |
1016 | - write (); |
1017 | - EXPECT_EQ (env->ReadButtonAtKey (plugin, key), boost::get <CCSSettingButtonValue> (value)); |
1018 | -} |
1019 | - |
1020 | -void SetEdgeWriteExpectation (const std::string &plugin, |
1021 | - const std::string &key, |
1022 | - const VariantTypes &value, |
1023 | - const boost::shared_ptr <CCSSetting> &setting, |
1024 | - const WriteFunc &write, |
1025 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
1026 | -{ |
1027 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
1028 | - EXPECT_CALL (*gmock, getEdge (_)).WillRepeatedly (DoAll ( |
1029 | - SetArgPointee <0> ( |
1030 | - boost::get <unsigned int> (value)), |
1031 | - Return (TRUE))); |
1032 | - write (); |
1033 | - EXPECT_EQ (env->ReadEdgeAtKey (plugin, key), boost::get <unsigned int> (value)); |
1034 | -} |
1035 | - |
1036 | -void SetBellWriteExpectation (const std::string &plugin, |
1037 | - const std::string &key, |
1038 | - const VariantTypes &value, |
1039 | - const boost::shared_ptr <CCSSetting> &setting, |
1040 | - const WriteFunc &write, |
1041 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
1042 | -{ |
1043 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
1044 | - EXPECT_CALL (*gmock, getBell (_)).WillRepeatedly (DoAll ( |
1045 | - SetArgPointee <0> ( |
1046 | - boolToBool (boost::get <bool> (value))), |
1047 | - Return (TRUE))); |
1048 | - write (); |
1049 | - bool v (boost::get <bool> (value)); |
1050 | - |
1051 | - if (v) |
1052 | - EXPECT_THAT (env->ReadBellAtKey (plugin, key), IsTrue ()); |
1053 | - else |
1054 | - EXPECT_THAT (env->ReadBellAtKey (plugin, key), IsFalse ()); |
1055 | -} |
1056 | - |
1057 | -void SetMatchWriteExpectation (const std::string &plugin, |
1058 | - const std::string &key, |
1059 | - const VariantTypes &value, |
1060 | - const boost::shared_ptr <CCSSetting> &setting, |
1061 | - const WriteFunc &write, |
1062 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
1063 | -{ |
1064 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
1065 | - EXPECT_CALL (*gmock, getMatch (_)).WillRepeatedly (DoAll ( |
1066 | - SetArgPointee <0> ( |
1067 | - const_cast <char *> (boost::get <const char *> (value))), |
1068 | - Return (TRUE))); |
1069 | - write (); |
1070 | - EXPECT_EQ (std::string (env->ReadMatchAtKey (plugin, key)), std::string (boost::get <const char *> (value))); |
1071 | -} |
1072 | - |
1073 | -void SetListWriteExpectation (const std::string &plugin, |
1074 | - const std::string &key, |
1075 | - const VariantTypes &value, |
1076 | - const boost::shared_ptr <CCSSetting> &setting, |
1077 | - const WriteFunc &write, |
1078 | - const CCSBackendConceptTestEnvironmentInterface::Ptr &env) |
1079 | -{ |
1080 | - CCSSettingGMock *gmock (getSettingGMockFromSetting (setting)); |
1081 | - CCSSettingValueList list = *(boost::get <boost::shared_ptr <cci::SettingValueListWrapper> > (value)); |
1082 | - |
1083 | - EXPECT_CALL (*gmock, getInfo ()); |
1084 | - |
1085 | - CCSSettingInfo *info = ccsSettingGetInfo (setting.get ()); |
1086 | - |
1087 | - info->forList.listType = (boost::get <boost::shared_ptr <cci::SettingValueListWrapper> > (value))->type (); |
1088 | - |
1089 | - EXPECT_CALL (*gmock, getInfo ()).Times (AtLeast (1)); |
1090 | - EXPECT_CALL (*gmock, getList (_)).WillRepeatedly (DoAll ( |
1091 | - SetArgPointee <0> ( |
1092 | - list), |
1093 | - Return (TRUE))); |
1094 | - write (); |
1095 | - |
1096 | - EXPECT_THAT (cci::SettingValueListWrapper (env->ReadListAtKey (plugin, key, setting.get ()), |
1097 | - cci::Deep, |
1098 | - info->forList.listType, |
1099 | - boost::shared_ptr <CCSSettingInfo> (), |
1100 | - setting), |
1101 | - ListEqual (&info->forList, list)); |
1102 | -} |
1103 | - |
1104 | -void SetIntReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1105 | -{ |
1106 | - EXPECT_CALL (*gmock, setInt (boost::get <int> (value), _)); |
1107 | -} |
1108 | - |
1109 | -void SetBoolReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1110 | -{ |
1111 | - bool v (boost::get <bool> (value)); |
1112 | - |
1113 | - if (v) |
1114 | - EXPECT_CALL (*gmock, setBool (IsTrue (), _)); |
1115 | - else |
1116 | - EXPECT_CALL (*gmock, setBool (IsFalse (), _)); |
1117 | -} |
1118 | - |
1119 | -void SetBellReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1120 | -{ |
1121 | - bool v (boost::get <bool> (value)); |
1122 | - |
1123 | - if (v) |
1124 | - EXPECT_CALL (*gmock, setBell (IsTrue (), _)); |
1125 | - else |
1126 | - EXPECT_CALL (*gmock, setBell (IsFalse (), _)); |
1127 | -} |
1128 | - |
1129 | -void SetFloatReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1130 | -{ |
1131 | - EXPECT_CALL (*gmock, setFloat (boost::get <float> (value), _)); |
1132 | -} |
1133 | - |
1134 | -void SetStringReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1135 | -{ |
1136 | - EXPECT_CALL (*gmock, setString (Eq (std::string (boost::get <const char *> (value))), _)); |
1137 | -} |
1138 | - |
1139 | -void SetMatchReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1140 | -{ |
1141 | - EXPECT_CALL (*gmock, setMatch (Eq (std::string (boost::get <const char *> (value))), _)); |
1142 | -} |
1143 | - |
1144 | -void SetColorReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1145 | -{ |
1146 | - EXPECT_CALL (*gmock, setColor (boost::get <CCSSettingColorValue> (value), _)); |
1147 | -} |
1148 | - |
1149 | -void SetKeyReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1150 | -{ |
1151 | - EXPECT_CALL (*gmock, setKey (boost::get <CCSSettingKeyValue> (value), _)); |
1152 | -} |
1153 | - |
1154 | -void SetButtonReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1155 | -{ |
1156 | - EXPECT_CALL (*gmock, setButton (boost::get <CCSSettingButtonValue> (value), _)); |
1157 | -} |
1158 | - |
1159 | -void SetEdgeReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1160 | -{ |
1161 | - EXPECT_CALL (*gmock, setEdge (boost::get <unsigned int> (value), _)); |
1162 | -} |
1163 | - |
1164 | -CCSSettingInfo globalListInfo; |
1165 | - |
1166 | -void SetListReadExpectation (CCSSettingGMock *gmock, const VariantTypes &value) |
1167 | -{ |
1168 | - globalListInfo.forList.listType = (boost::get <boost::shared_ptr <cci::SettingValueListWrapper> > (value))->type (); |
1169 | - globalListInfo.forList.listInfo = NULL; |
1170 | - |
1171 | - ON_CALL (*gmock, getInfo ()).WillByDefault (Return (&globalListInfo)); |
1172 | - EXPECT_CALL (*gmock, setList ( |
1173 | - ListEqual ( |
1174 | - &globalListInfo.forList, |
1175 | - *(boost::get <boost::shared_ptr <cci::SettingValueListWrapper> > (value))), _)); |
1176 | -} |
1177 | - |
1178 | -} |
1179 | - |
1180 | class CCSBackendConceptTestParamInterface |
1181 | { |
1182 | public: |
1183 | @@ -516,7 +232,7 @@ |
1184 | const compizconfig::test::WriteFunc &, |
1185 | const CCSBackendConceptTestEnvironmentInterface::Ptr &)> SetWriteExpectation; |
1186 | |
1187 | - virtual void TearDown (CCSBackend *) = 0; |
1188 | + virtual void BackendTearDown (CCSBackend *) = 0; |
1189 | |
1190 | virtual CCSBackendConceptTestEnvironmentInterface::Ptr testEnv () = 0; |
1191 | virtual VariantTypes & value () = 0; |
1192 | @@ -559,10 +275,10 @@ |
1193 | { |
1194 | } |
1195 | |
1196 | - void TearDown (CCSBackend *b) |
1197 | + void BackendTearDown (CCSBackend *b) |
1198 | { |
1199 | if (mTestEnv) |
1200 | - mTestEnv->TearDown (b); |
1201 | + mTestEnv->BackendTearDown (b); |
1202 | |
1203 | mTestEnv.reset (); |
1204 | } |
1205 | @@ -699,13 +415,13 @@ |
1206 | virtual void SetUp () |
1207 | { |
1208 | SetupContext (); |
1209 | - mBackend = mTestEnv->SetUp (context.get (), gmockContext); |
1210 | + mBackend = mTestEnv->BackendSetUp (context.get (), gmockContext); |
1211 | } |
1212 | |
1213 | virtual void TearDown () |
1214 | { |
1215 | if (mTestEnv) |
1216 | - mTestEnv->TearDown (mBackend); |
1217 | + mTestEnv->BackendTearDown (mBackend); |
1218 | |
1219 | mTestEnv.reset (); |
1220 | } |
1221 | @@ -726,12 +442,12 @@ |
1222 | virtual void SetUp () |
1223 | { |
1224 | SetupContext (); |
1225 | - mBackend = GetParam ()->testEnv ()->SetUp (context.get (), gmockContext); |
1226 | + mBackend = GetParam ()->testEnv ()->BackendSetUp (context.get (), gmockContext); |
1227 | } |
1228 | |
1229 | virtual void TearDown () |
1230 | { |
1231 | - CCSBackendConformanceTestParameterized::GetParam ()->TearDown (mBackend); |
1232 | + CCSBackendConformanceTestParameterized::GetParam ()->BackendTearDown (mBackend); |
1233 | } |
1234 | }; |
1235 | |
1236 | |
1237 | === modified file 'compizconfig/tests/compizconfig_backend_concept_test_environment_interface.h' |
1238 | --- compizconfig/tests/compizconfig_backend_concept_test_environment_interface.h 2012-09-12 08:35:51 +0000 |
1239 | +++ compizconfig/tests/compizconfig_backend_concept_test_environment_interface.h 2012-10-09 03:07:19 +0000 |
1240 | @@ -42,9 +42,9 @@ |
1241 | typedef boost::shared_ptr <CCSBackendConceptTestEnvironmentInterface> Ptr; |
1242 | |
1243 | virtual ~CCSBackendConceptTestEnvironmentInterface () {}; |
1244 | - virtual CCSBackend * SetUp (CCSContext *context, |
1245 | + virtual CCSBackend * BackendSetUp (CCSContext *context, |
1246 | CCSContextGMock *gmockContext) = 0; |
1247 | - virtual void TearDown (CCSBackend *) = 0; |
1248 | + virtual void BackendTearDown (CCSBackend *) = 0; |
1249 | |
1250 | virtual void AddProfile (const std::string &profile) = 0; |
1251 | virtual void SetGetExistingProfilesExpectation (CCSContext *, |
1252 | |
1253 | === modified file 'gtk/window-decorator/CMakeLists.txt' |
1254 | --- gtk/window-decorator/CMakeLists.txt 2012-09-05 14:25:35 +0000 |
1255 | +++ gtk/window-decorator/CMakeLists.txt 2012-10-09 03:07:19 +0000 |
1256 | @@ -5,6 +5,7 @@ |
1257 | endif (COMPIZ_BUILD_WITH_RPATH) |
1258 | |
1259 | include_directories ( |
1260 | + ${CMAKE_CURRENT_SOURCE_DIR} |
1261 | ${compiz_SOURCE_DIR}/include |
1262 | ${CMAKE_BINARY_DIR}/gtk |
1263 | ${GTK_WINDOW_DECORATOR_INCLUDE_DIRS} |
1264 | |
1265 | === modified file 'gtk/window-decorator/blurprops.c' |
1266 | --- gtk/window-decorator/blurprops.c 2012-08-27 15:40:30 +0000 |
1267 | +++ gtk/window-decorator/blurprops.c 2012-10-09 03:07:19 +0000 |
1268 | @@ -20,6 +20,7 @@ |
1269 | */ |
1270 | |
1271 | #include "gtk-window-decorator.h" |
1272 | +#include "gwd-settings-interface.h" |
1273 | |
1274 | void |
1275 | decor_update_blur_property (decor_t *d, |
1276 | |
1277 | === modified file 'gtk/window-decorator/events.c' |
1278 | --- gtk/window-decorator/events.c 2012-09-27 09:03:24 +0000 |
1279 | +++ gtk/window-decorator/events.c 2012-10-09 03:07:19 +0000 |
1280 | @@ -23,7 +23,8 @@ |
1281 | * Authored By: Sam Spilsbury <sam.spilsbury@canonical.com> |
1282 | */ |
1283 | |
1284 | -#include "gtk-window-decorator.h" |
1285 | +#include "gtk-window-decorator.h" |
1286 | +#include "gwd-settings-interface.h" |
1287 | |
1288 | void |
1289 | move_resize_window (WnckWindow *win, |
1290 | |
1291 | === modified file 'gtk/window-decorator/gtk-window-decorator.c' |
1292 | --- gtk/window-decorator/gtk-window-decorator.c 2012-09-27 09:03:24 +0000 |
1293 | +++ gtk/window-decorator/gtk-window-decorator.c 2012-10-09 03:07:19 +0000 |
1294 | @@ -26,6 +26,7 @@ |
1295 | #include "gtk-window-decorator.h" |
1296 | #include "gwd-settings-writable-interface.h" |
1297 | #include "gwd-settings.h" |
1298 | +#include "gwd-settings-interface.h" |
1299 | #include "gwd-settings-notified-interface.h" |
1300 | #include "gwd-settings-notified.h" |
1301 | |
1302 | |
1303 | === modified file 'gtk/window-decorator/gtk-window-decorator.h' |
1304 | --- gtk/window-decorator/gtk-window-decorator.h 2012-09-27 09:03:24 +0000 |
1305 | +++ gtk/window-decorator/gtk-window-decorator.h 2012-10-09 03:07:19 +0000 |
1306 | @@ -109,7 +109,7 @@ |
1307 | #include <metacity-private/theme.h> |
1308 | #endif |
1309 | |
1310 | -#include "gwd-settings-interface.h" |
1311 | +#include <gwd-fwd.h> |
1312 | |
1313 | #define METACITY_GCONF_DIR "/apps/metacity/general" |
1314 | #define MUTTER_GCONF_DIR "/apps/mutter/general" |
1315 | @@ -225,9 +225,6 @@ |
1316 | |
1317 | #define PROP_MOTIF_WM_HINT_ELEMENTS 3 |
1318 | |
1319 | -typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1320 | -typedef struct _GWDSettingsNotified GWDSettingsNotified; |
1321 | - |
1322 | typedef struct { |
1323 | unsigned long flags; |
1324 | unsigned long functions; |
1325 | |
1326 | === modified file 'gtk/window-decorator/gwd-cairo-window-decoration-util.h' |
1327 | --- gtk/window-decorator/gwd-cairo-window-decoration-util.h 2012-09-07 00:30:48 +0000 |
1328 | +++ gtk/window-decorator/gwd-cairo-window-decoration-util.h 2012-10-09 03:07:19 +0000 |
1329 | @@ -21,11 +21,10 @@ |
1330 | #define _GWD_CAIRO_WINDOW_DECORATION_UTIL_H |
1331 | |
1332 | #include <glib.h> |
1333 | +#include <decoration.h> |
1334 | |
1335 | G_BEGIN_DECLS |
1336 | |
1337 | -typedef struct _decor_extents decor_extents_t; |
1338 | - |
1339 | const decor_extents_t * gwd_cairo_window_decoration_get_default_max_win_extents (); |
1340 | const decor_extents_t * gwd_cairo_window_decoration_get_default_win_extents (); |
1341 | |
1342 | |
1343 | === added file 'gtk/window-decorator/gwd-fwd.h' |
1344 | --- gtk/window-decorator/gwd-fwd.h 1970-01-01 00:00:00 +0000 |
1345 | +++ gtk/window-decorator/gwd-fwd.h 2012-10-09 03:07:19 +0000 |
1346 | @@ -0,0 +1,35 @@ |
1347 | +/* |
1348 | + * Copyright © 2012 Canonical Ltd |
1349 | + * |
1350 | + * This program is free software; you can redistribute it and/or modify |
1351 | + * it under the terms of the GNU General Public License as published by |
1352 | + * the Free Software Foundation; either version 2 of the License, or |
1353 | + * (at your option) any later version. |
1354 | + * |
1355 | + * This program is distributed in the hope that it will be useful, |
1356 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1357 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1358 | + * GNU General Public License for more details. |
1359 | + * |
1360 | + * You should have received a copy of the GNU General Public License |
1361 | + * along with this program; if not, write to the Free Software Foundation, |
1362 | + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1363 | + * |
1364 | + * Authored By: Sam Spilsbury <sam.spilsbury@canonical.com> |
1365 | + */ |
1366 | +#ifndef _COMPIZ_GWD_FWD_H |
1367 | +#define _COMPIZ_GWD_FWD_H |
1368 | + |
1369 | +#include <glib-object.h> |
1370 | + |
1371 | +G_BEGIN_DECLS |
1372 | + |
1373 | +typedef struct _GWDSettings GWDSettings; |
1374 | +typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1375 | +typedef struct _GWDSettingsNotified GWDSettingsNotified; |
1376 | +typedef struct _GWDSettingsStorage GWDSettingsStorage; |
1377 | +typedef struct _GWDSettingsXPropertyStorage GWDSettingsXPropertyStorage; |
1378 | + |
1379 | +G_END_DECLS |
1380 | + |
1381 | +#endif |
1382 | |
1383 | === modified file 'gtk/window-decorator/gwd-metacity-window-decoration-util.h' |
1384 | --- gtk/window-decorator/gwd-metacity-window-decoration-util.h 2012-09-07 00:30:48 +0000 |
1385 | +++ gtk/window-decorator/gwd-metacity-window-decoration-util.h 2012-10-09 03:07:19 +0000 |
1386 | @@ -21,10 +21,10 @@ |
1387 | #define _GWD_METACITY_WINDOW_DECORATION_UTIL_H |
1388 | |
1389 | #include <glib.h> |
1390 | +#include <metacity-1/metacity-private/theme.h> |
1391 | |
1392 | G_BEGIN_DECLS |
1393 | |
1394 | -typedef struct _MetaTheme MetaTheme; |
1395 | typedef MetaTheme * (*GWDMetaThemeGetCurrentProc) (); |
1396 | typedef void (*GWDMetaThemeSetProc) (const gchar *theme, |
1397 | gboolean force_update); |
1398 | |
1399 | === modified file 'gtk/window-decorator/gwd-settings-interface.h' |
1400 | --- gtk/window-decorator/gwd-settings-interface.h 2012-09-06 10:08:25 +0000 |
1401 | +++ gtk/window-decorator/gwd-settings-interface.h 2012-10-09 03:07:19 +0000 |
1402 | @@ -21,6 +21,7 @@ |
1403 | #define _COMPIZ_GWD_SETTINGS_INTERFACE_H |
1404 | |
1405 | #include <glib-object.h> |
1406 | +#include <gwd-fwd.h> |
1407 | |
1408 | G_BEGIN_DECLS |
1409 | |
1410 | @@ -32,7 +33,6 @@ |
1411 | GWDSettingsInterface)) |
1412 | #define GWD_TYPE_SETTINGS_INTERFACE (gwd_settings_interface_get_type ()) |
1413 | |
1414 | -typedef struct _GWDSettings GWDSettings; |
1415 | typedef struct _GWDSettingsInterface GWDSettingsInterface; |
1416 | |
1417 | struct _GWDSettingsInterface |
1418 | |
1419 | === modified file 'gtk/window-decorator/gwd-settings-notified-interface.h' |
1420 | --- gtk/window-decorator/gwd-settings-notified-interface.h 2012-09-06 10:08:25 +0000 |
1421 | +++ gtk/window-decorator/gwd-settings-notified-interface.h 2012-10-09 03:07:19 +0000 |
1422 | @@ -21,6 +21,7 @@ |
1423 | #define _COMPIZ_GWD_SETTINGS_NOTIFIED_INTERFACE_H |
1424 | |
1425 | #include <glib-object.h> |
1426 | +#include <gwd-fwd.h> |
1427 | |
1428 | G_BEGIN_DECLS |
1429 | |
1430 | @@ -32,7 +33,6 @@ |
1431 | GWDSettingsNotifiedInterface)) |
1432 | #define GWD_TYPE_SETTINGS_NOTIFIED_INTERFACE (gwd_settings_notified_interface_get_type ()) |
1433 | |
1434 | -typedef struct _GWDSettingsNotified GWDSettingsNotified; |
1435 | typedef struct _GWDSettingsNotifiedInterface GWDSettingsNotifiedInterface; |
1436 | |
1437 | struct _GWDSettingsNotifiedInterface |
1438 | |
1439 | === modified file 'gtk/window-decorator/gwd-settings-notified.h' |
1440 | --- gtk/window-decorator/gwd-settings-notified.h 2012-09-06 10:08:25 +0000 |
1441 | +++ gtk/window-decorator/gwd-settings-notified.h 2012-10-09 03:07:19 +0000 |
1442 | @@ -21,9 +21,8 @@ |
1443 | #define _COMPIZ_GWD_SETTINGS_NOTIFIED_H |
1444 | |
1445 | #include <glib-object.h> |
1446 | - |
1447 | -typedef struct _GWDSettingsNotified GWDSettingsNotified; |
1448 | -typedef struct _WnckScreen WnckScreen; |
1449 | +#include <libwnck/screen.h> |
1450 | +#include <gwd-fwd.h> |
1451 | |
1452 | G_BEGIN_DECLS |
1453 | |
1454 | |
1455 | === modified file 'gtk/window-decorator/gwd-settings-storage-gconf.h' |
1456 | --- gtk/window-decorator/gwd-settings-storage-gconf.h 2012-09-06 10:08:25 +0000 |
1457 | +++ gtk/window-decorator/gwd-settings-storage-gconf.h 2012-10-09 03:07:19 +0000 |
1458 | @@ -21,9 +21,7 @@ |
1459 | #define _COMPIZ_GWD_SETTINGS_STORAGE_GCONF_H |
1460 | |
1461 | #include <glib-object.h> |
1462 | - |
1463 | -typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1464 | -typedef struct _GWDSettingsStorage GWDSettingsStorage; |
1465 | +#include <gwd-fwd.h> |
1466 | |
1467 | G_BEGIN_DECLS |
1468 | |
1469 | |
1470 | === modified file 'gtk/window-decorator/gwd-settings-storage-gsettings.h' |
1471 | --- gtk/window-decorator/gwd-settings-storage-gsettings.h 2012-09-06 10:08:25 +0000 |
1472 | +++ gtk/window-decorator/gwd-settings-storage-gsettings.h 2012-10-09 03:07:19 +0000 |
1473 | @@ -21,10 +21,7 @@ |
1474 | #define _COMPIZ_GWD_SETTINGS_STORAGE_GSETTINGS_H |
1475 | |
1476 | #include <glib-object.h> |
1477 | - |
1478 | -typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1479 | -typedef struct _GWDSettingsStorage GWDSettingsStorage; |
1480 | -typedef struct _GSettings GSettings; |
1481 | +#include <gwd-fwd.h> |
1482 | |
1483 | G_BEGIN_DECLS |
1484 | |
1485 | |
1486 | === modified file 'gtk/window-decorator/gwd-settings-storage-interface.h' |
1487 | --- gtk/window-decorator/gwd-settings-storage-interface.h 2012-09-06 10:08:25 +0000 |
1488 | +++ gtk/window-decorator/gwd-settings-storage-interface.h 2012-10-09 03:07:19 +0000 |
1489 | @@ -21,6 +21,7 @@ |
1490 | #define _COMPIZ_GWD_SETTINGS_STORAGE_INTERFACE_H |
1491 | |
1492 | #include <glib-object.h> |
1493 | +#include <gwd-fwd.h> |
1494 | |
1495 | G_BEGIN_DECLS |
1496 | |
1497 | @@ -32,7 +33,6 @@ |
1498 | GWDSettingsStorageInterface)) |
1499 | #define GWD_TYPE_SETTINGS_STORAGE_INTERFACE (gwd_settings_storage_interface_get_type ()) |
1500 | |
1501 | -typedef struct _GWDSettingsStorage GWDSettingsStorage; |
1502 | typedef struct _GWDSettingsStorageInterface GWDSettingsStorageInterface; |
1503 | |
1504 | struct _GWDSettingsStorageInterface |
1505 | |
1506 | === modified file 'gtk/window-decorator/gwd-settings-writable-interface.h' |
1507 | --- gtk/window-decorator/gwd-settings-writable-interface.h 2012-09-06 10:08:25 +0000 |
1508 | +++ gtk/window-decorator/gwd-settings-writable-interface.h 2012-10-09 03:07:19 +0000 |
1509 | @@ -21,6 +21,7 @@ |
1510 | #define _COMPIZ_GWD_SETTINGS_WRITABLE_INTERFACE_H |
1511 | |
1512 | #include <glib-object.h> |
1513 | +#include <gwd-fwd.h> |
1514 | |
1515 | G_BEGIN_DECLS |
1516 | |
1517 | @@ -32,7 +33,6 @@ |
1518 | GWDSettingsWritableInterface)) |
1519 | #define GWD_TYPE_WRITABLE_SETTINGS_INTERFACE (gwd_settings_writable_interface_get_type ()) |
1520 | |
1521 | -typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1522 | typedef struct _GWDSettingsWritableInterface GWDSettingsWritableInterface; |
1523 | |
1524 | struct _GWDSettingsWritableInterface |
1525 | |
1526 | === modified file 'gtk/window-decorator/gwd-settings-xproperty-interface.h' |
1527 | --- gtk/window-decorator/gwd-settings-xproperty-interface.h 2012-09-06 10:08:25 +0000 |
1528 | +++ gtk/window-decorator/gwd-settings-xproperty-interface.h 2012-10-09 03:07:19 +0000 |
1529 | @@ -21,6 +21,7 @@ |
1530 | #define _COMPIZ_GWD_SETTINGS_XPROPERTY_STORAGE_INTERFACE_H |
1531 | |
1532 | #include <glib-object.h> |
1533 | +#include <gwd-fwd.h> |
1534 | |
1535 | G_BEGIN_DECLS |
1536 | |
1537 | @@ -32,7 +33,6 @@ |
1538 | GWDSettingsXPropertyStorageInterface)) |
1539 | #define GWD_TYPE_XPROPERTY_SETTINGS_STORAGE_INTERFACE (gwd_settings_xproperty_storage_interface_get_type ()) |
1540 | |
1541 | -typedef struct _GWDSettingsXPropertyStorage GWDSettingsXPropertyStorage; |
1542 | typedef struct _GWDSettingsXPropertyStorageInterface GWDSettingsXPropertyStorageInterface; |
1543 | |
1544 | struct _GWDSettingsXPropertyStorageInterface |
1545 | |
1546 | === modified file 'gtk/window-decorator/gwd-settings-xproperty-storage.h' |
1547 | --- gtk/window-decorator/gwd-settings-xproperty-storage.h 2012-09-06 10:08:25 +0000 |
1548 | +++ gtk/window-decorator/gwd-settings-xproperty-storage.h 2012-10-09 03:07:19 +0000 |
1549 | @@ -21,9 +21,8 @@ |
1550 | #define _COMPIZ_GWD_SETTINGS_STORAGE_XPROP_H |
1551 | |
1552 | #include <glib-object.h> |
1553 | +#include <gwd-fwd.h> |
1554 | |
1555 | -typedef struct _GWDSettingsWritable GWDSettingsWritable; |
1556 | -typedef struct _GWDSettingsXPropertyStorage GWDSettingsXPropertyStorage; |
1557 | typedef struct _XDisplay Display; |
1558 | typedef unsigned long Window; |
1559 | |
1560 | |
1561 | === modified file 'gtk/window-decorator/gwd-settings.h' |
1562 | --- gtk/window-decorator/gwd-settings.h 2012-09-06 10:08:25 +0000 |
1563 | +++ gtk/window-decorator/gwd-settings.h 2012-10-09 03:07:19 +0000 |
1564 | @@ -21,9 +21,7 @@ |
1565 | #define _COMPIZ_GWD_SETTINGS_H |
1566 | |
1567 | #include <glib-object.h> |
1568 | - |
1569 | -typedef struct _GWDSettings GWDSettings; |
1570 | -typedef struct _GWDSettingsNotified GWDSettingsNotified; |
1571 | +#include <gwd-fwd.h> |
1572 | |
1573 | G_BEGIN_DECLS |
1574 | |
1575 | |
1576 | === modified file 'gtk/window-decorator/tests/test_gwd_settings.cpp' |
1577 | --- gtk/window-decorator/tests/test_gwd_settings.cpp 2012-09-12 08:35:51 +0000 |
1578 | +++ gtk/window-decorator/tests/test_gwd_settings.cpp 2012-10-09 03:07:19 +0000 |
1579 | @@ -262,11 +262,6 @@ |
1580 | |
1581 | namespace |
1582 | { |
1583 | - void gwd_settings_notified_unref (GWDSettingsNotified *notified) |
1584 | - { |
1585 | - g_object_unref (G_OBJECT (notified)); |
1586 | - } |
1587 | - |
1588 | void gwd_settings_storage_unref (GWDSettingsStorage *storage) |
1589 | { |
1590 | g_object_unref (G_OBJECT (storage)); |
1591 | |
1592 | === modified file 'plugins/opengl/src/paint.cpp' |
1593 | --- plugins/opengl/src/paint.cpp 2012-09-21 06:05:27 +0000 |
1594 | +++ plugins/opengl/src/paint.cpp 2012-10-09 03:07:19 +0000 |
1595 | @@ -657,8 +657,6 @@ |
1596 | WRAPABLE_HND_FUNCTN (glPaintCompositedOutput, region, fbo, mask) |
1597 | |
1598 | GLMatrix sTransform; |
1599 | - std::vector<GLfloat> vertexData; |
1600 | - std::vector<GLfloat> textureData; |
1601 | const GLTexture::Matrix & texmatrix = fbo->tex ()->matrix (); |
1602 | GLVertexBuffer *streamingBuffer = GLVertexBuffer::streamingBuffer (); |
1603 | |
1604 | @@ -671,7 +669,7 @@ |
1605 | GLfloat ty1 = 1.0 - COMP_TEX_COORD_Y (texmatrix, 0.0f); |
1606 | GLfloat ty2 = 1.0 - COMP_TEX_COORD_Y (texmatrix, screen->height ()); |
1607 | |
1608 | - vertexData = { |
1609 | + const GLfloat vertexData[] = { |
1610 | 0.0f, 0.0f, 0.0f, |
1611 | 0.0f, (float)screen->height (), 0.0f, |
1612 | (float)screen->width (), 0.0f, 0.0f, |
1613 | @@ -681,7 +679,7 @@ |
1614 | (float)screen->width (), 0.0f, 0.0f, |
1615 | }; |
1616 | |
1617 | - textureData = { |
1618 | + const GLfloat textureData[] = { |
1619 | tx1, ty1, |
1620 | tx1, ty2, |
1621 | tx2, ty1, |
1622 | @@ -705,7 +703,7 @@ |
1623 | GLfloat ty1 = 1.0 - COMP_TEX_COORD_Y (texmatrix, pBox->y1); |
1624 | GLfloat ty2 = 1.0 - COMP_TEX_COORD_Y (texmatrix, pBox->y2); |
1625 | |
1626 | - vertexData = { |
1627 | + const GLfloat vertexData[] = { |
1628 | (float)pBox->x1, (float)pBox->y1, 0.0f, |
1629 | (float)pBox->x1, (float)pBox->y2, 0.0f, |
1630 | (float)pBox->x2, (float)pBox->y1, 0.0f, |
1631 | @@ -715,7 +713,7 @@ |
1632 | (float)pBox->x2, (float)pBox->y1, 0.0f, |
1633 | }; |
1634 | |
1635 | - textureData = { |
1636 | + const GLfloat textureData[] = { |
1637 | tx1, ty1, |
1638 | tx1, ty2, |
1639 | tx2, ty1, |
FAILED: Continuous integration, rev:3417 jenkins. qa.ubuntu. com/job/ compiz- ci/161/ jenkins. qa.ubuntu. com/job/ compiz- ci/./build= pbuilder, distribution= quantal, flavor= amd64/161/ console
http://
Executed test runs:
FAILURE: http://