Merge lp:~larsu/unity8/fallback-icon-theme into lp:unity8

Proposed by Lars Karlitski
Status: Merged
Approved by: Michael Zanetti
Approved revision: 275
Merged at revision: 280
Proposed branch: lp:~larsu/unity8/fallback-icon-theme
Merge into: lp:unity8
Diff against target: 15 lines (+3/-2)
1 file modified
main.cpp (+3/-2)
To merge this branch: bzr merge lp:~larsu/unity8/fallback-icon-theme
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michael Zanetti (community) Approve
Sebastien Bacher Approve
Review via email: mp+183649@code.launchpad.net

Commit message

Fall back to "ubuntu-mobile" icon theme if $UBUNTU_ICON_THEME is unset

Description of the change

Fall back to "ubuntu-mobile" icon theme if $UBUNTU_ICON_THEME is unset

This is a workaround until bug #1098578 is fixed.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, the Build-Depends seems like it should be a runtime Recommends instead though?

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

yes, I like it this way! ;-)

review: Approve
Revision history for this message
Michael Zanetti (mzanetti) wrote :

I don't think unity8 should depend on ubuntu-mobile-icons.

Also, can you please replace the (deprecated) getenv() with qgetenv()?

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

> I don't think unity8 should depend on ubuntu-mobile-icons.

it doesn't depends on it, but Recommends (e.g you can remove the theme). Reality is that it uses icons that are specific to that theme, so while that's true we should probably recommends the theme shipping them ...

Of course we can change that and use icons that are available on the desktop as well, then we can drop the recommends

Revision history for this message
Michael Zanetti (mzanetti) wrote :

ubuntu-mobile-icons is pulled in by the SDK which we depend on. As the SDK ships all the other theme components, it's also the SDK that should pull in a matching icon theme.

Revision history for this message
Lars Karlitski (larsu) wrote :

> ubuntu-mobile-icons is pulled in by the SDK which we depend on. As the SDK
> ships all the other theme components, it's also the SDK that should pull in a
> matching icon theme.

Fair enough, I've removed it in r275.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

lgtm.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'main.cpp'
2--- main.cpp 2013-08-23 11:56:44 +0000
3+++ main.cpp 2013-09-03 14:05:54 +0000
4@@ -65,9 +65,10 @@
5
6 void resolveIconTheme() {
7 const char *ubuntuIconTheme = getenv("UBUNTU_ICON_THEME");
8- if (ubuntuIconTheme != NULL) {
9- QIcon::setThemeName(ubuntuIconTheme);
10+ if (ubuntuIconTheme == NULL) {
11+ ubuntuIconTheme = "ubuntu-mobile";
12 }
13+ QIcon::setThemeName(ubuntuIconTheme);
14 }
15 } // namespace {
16

Subscribers

People subscribed via source and target branches