Merge lp://qastaging/~compiz-team/compiz/compiz.ccs_general_cleanup into lp://qastaging/compiz/0.9.8
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | 3323 |
Merged at revision: | 3317 |
Proposed branch: | lp://qastaging/~compiz-team/compiz/compiz.ccs_general_cleanup |
Merge into: | lp://qastaging/compiz/0.9.8 |
Diff against target: |
3282 lines (+1116/-567) 35 files modified
cmake/CompizCommon.cmake (+17/-2) compizconfig/gconf/src/gconf.c (+11/-10) compizconfig/gsettings/src/gsettings.c (+2/-2) compizconfig/libcompizconfig/backend/src/ini.c (+14/-11) compizconfig/libcompizconfig/include/ccs-backend.h (+10/-2) compizconfig/libcompizconfig/include/ccs-defs.h (+93/-0) compizconfig/libcompizconfig/include/ccs-list.h (+85/-0) compizconfig/libcompizconfig/include/ccs-object.h (+204/-0) compizconfig/libcompizconfig/include/ccs-string.h (+47/-0) compizconfig/libcompizconfig/include/ccs.h (+27/-204) compizconfig/libcompizconfig/src/ccs-private.h (+2/-6) compizconfig/libcompizconfig/src/compiz.cpp (+20/-18) compizconfig/libcompizconfig/src/ini.c (+1/-1) compizconfig/libcompizconfig/src/lists.c (+2/-2) compizconfig/libcompizconfig/src/main.c (+178/-168) compizconfig/libcompizconfig/tests/CMakeLists.txt (+1/-0) compizconfig/libcompizconfig/tests/context-mock.cpp (+3/-2) compizconfig/libcompizconfig/tests/mock-context.h (+29/-9) compizconfig/libcompizconfig/tests/mock-plugin.h (+21/-3) compizconfig/libcompizconfig/tests/mock-setting.h (+18/-5) compizconfig/libcompizconfig/tests/plugin-mock.cpp (+3/-2) compizconfig/libcompizconfig/tests/setting-mock.cpp (+32/-4) compizconfig/libcompizconfig/tests/test-ccs-object.cpp (+1/-77) compizconfig/libcompizconfig/tests/test-context.cpp (+1/-1) compizconfig/libcompizconfig/tests/test-plugin.cpp (+1/-1) compizconfig/libcompizconfig/tests/test-setting.cpp (+1/-1) compizconfig/tests/compizconfig_ccs_mocked_allocator.h (+95/-0) gtk/gnome/50-compiz-launchers.xml.in (+6/-0) gtk/gnome/50-compiz-navigation.xml.in (+74/-0) gtk/gnome/50-compiz-screenshot.xml.in (+8/-0) gtk/gnome/50-compiz-system.xml.in (+8/-0) gtk/gnome/50-compiz-windows.xml.in (+32/-0) gtk/gnome/CMakeLists.txt (+28/-0) gtk/window-decorator/settings.c (+36/-36) po/POTFILES.in (+5/-0) |
To merge this branch: | bzr merge lp://qastaging/~compiz-team/compiz/compiz.ccs_general_cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Needs Information | ||
Review via email:
|
This proposal supersedes a proposal from 2012-08-07.
Commit message
Fix some memory management issues on the mock objects, namely:
* Make destructor functions virtual where appropriate, so that we can add them to lists polymorphically
* Support polymorphic ccs*Unref function
Also make some other neccessary changes to libcompizconfig
* Comparison of bool values in lists must be done through boolean operators
* expose the definition of ccsCopyList, other programs will need it.
Description of the change
Fix some memory management issues on the mock objects, namely:
* Make destructor functions virtual where appropriate, so that we can add them to lists polymorphically
* Support polymorphic ccs*Unref function
Also make some other neccessary changes to libcompizconfig
* Comparison of bool values in lists must be done through boolean operators
* expose the definition of ccsCopyList, other programs will need it.
> compizconfig/ gconf/src/ gconf.c
Why change array to be "const char**" ? Also why cast it in free?
> compizconfig/ gsettings/ src/gsettings. c
Casting "const gchar**" to "char**"? Surely that should be "gchar**" if anything.
Why add the "const" if it is only causing pain?
I personally dislike TRUE being defined to ~0, but that's just me (other places define it to be 1).
Shouldn't !FALSE == TRUE? Pretty sure !0 is defined to be 1.
> compizconfig/ tests/compizcon fig_ccs_ mocked_ allocator. h
Header files should stand alone. here you are using stuff from <gmock/gmock.h>