Merge lp:~aacid/unity-2d/more_24_bit_stuff into lp:unity-2d
| Status: | Merged |
|---|---|
| Approved by: | Gerry Boland on 2012-05-21 |
| Approved revision: | 1099 |
| Merged at revision: | 1101 |
| Proposed branch: | lp:~aacid/unity-2d/more_24_bit_stuff |
| Merge into: | lp:unity-2d |
| Diff against target: |
142 lines (+52/-28) 3 files modified
libunity-2d-private/src/gimageutils.cpp (+28/-28) libunity-2d-private/tests/CMakeLists.txt (+2/-0) libunity-2d-private/tests/gimageutilstest.cpp (+22/-0) |
| To merge this branch: | bzr merge lp:~aacid/unity-2d/more_24_bit_stuff |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2012-05-15 | Approve on 2012-05-17 | |
|
Review via email:
|
|||
Commit Message
[lib] Load more types of 24 bit icons correctly, by preventing unnecessary ABGR → ARGB conversion in that case.
To the unit tests added three rgb dots to the existing colormapped image and then check for them. Also added a 24 bit non-colormapped image to check no ABGR → ARGB occurs.
Description of the Change
Load more types of 24 bit icons correctly, added three rgb dots to the existing colomapped image and check for them and also add a 24 bit image non colormapped that shows we need to add the early return in the code
| Unity Merger (unity-merger) wrote : | # |
There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Gerry Boland (gerboland) wrote : | # |
I'm going to poke this again, as I see no reference to job 290 in the public Jenkins info.
https:/
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Gerry Boland (gerboland) wrote : | # |
I tracked down the failure to the fact that g_type_init() needs to be called in the test initialisation. We needed to call this before using any GObject functions.
When we're using Unity2dApplication, gtk_init is called which looks after this, so it's only the unit tests which need it.
- 1099. By Albert Astals Cid on 2012-05-21
-
[test] Need to call g_type_init() before using any GObject functions. This should fix gimageutilstest failing on Jenkins.


Looks good, let's see if Jenkins accepts it this time around.
Thank you for this!