Merge lp:~mvo/unity/lp1525186-icon-fallback into lp:unity
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4056 |
Proposed branch: | lp:~mvo/unity/lp1525186-icon-fallback |
Merge into: | lp:unity |
Diff against target: |
51 lines (+19/-1) 1 file modified
panel/PanelIndicatorEntryView.cpp (+19/-1) |
To merge this branch: | bzr merge lp:~mvo/unity/lp1525186-icon-fallback |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Marco Trevisan (Treviño) | Approve | ||
Review via email:
|
Commit message
Display "image-missing" icon in the panel if for some reason a icon can not be loaded.
Description of the change
Fix icon loading in the panel to have a "image-missing" icon if the requested icon can not be loaded.
To reproduce:
- switch to high-contrast theme in unity-system-
- observe that there is no icon for the session-indicator
- rebuild with my patch
- observe that there is an icon now
Note that I see in the log:
"""
WARN 2015-12-11 13:01:35 unity.panel.
p:253 failed to load: /org/gtk/
"""
So this indicates that the code that tries to find the icon is wrong in some way. However I still think there is value in having a fallback in the panel "if (!pixbuf)" even if this other issue gets fixed as e.g. the encoded icon might be wrong (and we do not check for the Gerror in this case).
Thanks for the MP. See my inline comments please.