Merge lp://qastaging/~azzar1/unity/fix-681503 into lp://qastaging/unity
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrea Azzarone | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1871 | ||||
Proposed branch: | lp://qastaging/~azzar1/unity/fix-681503 | ||||
Merge into: | lp://qastaging/unity | ||||
Diff against target: |
1285 lines (+1033/-26) 13 files modified
plugins/unityshell/src/BamfLauncherIcon.cpp (+2/-2) plugins/unityshell/src/BamfLauncherIcon.h (+2/-2) plugins/unityshell/src/FavoriteStore.h (+5/-5) plugins/unityshell/src/FavoriteStoreGSettings.cpp (+41/-14) plugins/unityshell/src/FavoriteStoreGSettings.h (+2/-1) plugins/unityshell/src/FavoriteStorePrivate.cpp (+130/-0) plugins/unityshell/src/FavoriteStorePrivate.h (+47/-0) plugins/unityshell/src/LauncherController.cpp (+85/-0) plugins/unityshell/src/LauncherModel.cpp (+30/-0) plugins/unityshell/src/LauncherModel.h (+1/-0) tests/CMakeLists.txt (+3/-0) tests/test_favorite_store_gsettings.cpp (+268/-2) tests/test_favorite_store_private.cpp (+417/-0) |
||||
To merge this branch: | bzr merge lp://qastaging/~azzar1/unity/fix-681503 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mirco Müller (community) | Approve | ||
Review via email:
|
Commit message
Add FavoriteStore external change support.
Description of the change
Add FavoriteStore external change support.
FavoriteStore can emit 3 signals:
* favorite_added
* favorite_removed
* reordered
Because favorite icons are not separated (in the launcher) from no-favorite icons, we do something like this:
- favorite_
- favorite_
- favorite_
The reordered signal is not emitted if we don't really need it. For example:
- A B C D -> A C D we don't need the reordered signal
- A B C D -> A C E D we don't need it
- A B C D -> A F B H C D we don't need it
- A B C D -> A B D C we need it
- A B C D -> B A we need it
- A B C D -> B A F C D we need it
There's a merge-conflict in plugins/ unityshell/ src/BamfLaunche rIcon.h with trunk...
const char* DesktopFile();
bool IsSticky();
<<<<<<< TREE
void Quit();
void Stick();
=======
void Stick(bool save = true);
>>>>>>> MERGE-SOURCE
void UnStick();