Merge lp:~uriboni/unity-2d/unity-2d-libunity2dprivate-util into lp:unity-2d/3.0
Proposed by
Ugo Riboni
Status: | Rejected |
---|---|
Rejected by: | Ugo Riboni |
Proposed branch: | lp:~uriboni/unity-2d/unity-2d-libunity2dprivate-util |
Merge into: | lp:unity-2d/3.0 |
Diff against target: |
151 lines (+54/-15) 8 files modified
libunity-2d-private/Unity2d/plugin.cpp (+2/-0) libunity-2d-private/src/CMakeLists.txt (+1/-0) libunity-2d-private/src/screeninfo.cpp (+0/-8) libunity-2d-private/src/screeninfo.h (+0/-5) libunity-2d-private/src/util.cpp (+27/-0) libunity-2d-private/src/util.h (+22/-0) places/dash.qml (+1/-1) spread/Window.qml (+1/-1) |
To merge this branch: | bzr merge lp:~uriboni/unity-2d/unity-2d-libunity2dprivate-util |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberto Mardegan (community) | Needs Fixing | ||
Florian Boucault | Pending | ||
Review via email: mp+72700@code.launchpad.net |
Commit message
[libunity2dprivate] Add a small singleton Util class where to add all otherwise unrelated utility functions. Replace ScreenInfo:
Description of the change
Add to libunity2dprivate a small singleton class where to add all otherwise unrelated utility functions.
One of these is currentTime, which was previously living in ScreenInfo but clearly didn't belong there.
Therefore I removed it from ScreenInfo and fixed all the places where it was used to use the one from Util.
To post a comment you must log in.
Unmerged revisions
- 687. By Ugo Riboni
-
Remove currentTime from ScreenInfo and use the new currentTime from Util instead
- 686. By Ugo Riboni
-
Add a new singleton class where to collect miscellaneous utility methods.
Hi Ugo! www.w3schools. com/jsref/ jsref_gettime. asp
There's some unused code in there: the scaleSize() method.
But I think we can do without this class at all, and just use Javascript's Date() class:
http://