Merge lp:~phurley/indicator-session/lp-957563 into lp:indicator-session/13.04
Proposed by
Peter Hurley
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~phurley/indicator-session/lp-957563 | ||||
Merge into: | lp:indicator-session/13.04 | ||||
Diff against target: |
44 lines (+18/-16) 1 file modified
src/indicator-session.c (+18/-16) |
||||
To merge this branch: | bzr merge lp:~phurley/indicator-session/lp-957563 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mathieu Trudel-Lapierre | Needs Fixing | ||
Review via email: mp+141480@code.launchpad.net |
Description of the change
Use a list of icons to select appropriate system icon (LP: #975563)
To post a comment you must log in.
Unmerged revisions
- 381. By Peter Hurley
-
Use an ordered list to choose the appropriate system icon.
The list is ordered by the following rules:
1) Most unique names come first (ie, names least likely to exist in other themes)
2) Themes with multiple matches require the desired icon name higher in the list
than other possible matches.
Fixes: https://bugs.launchpad .net/indicator- session/ +bug/975563 Preserves existing behavior: if the system menu's icon is missing in the current theme,
fall back to gtk-missing-icon instead of showing no icon at all.
Fixes: https://bugs.launchpad .net/bugs/ 1048348.
Seems far more complex and prone to omissions/special cases that another merge fixing the same issue: https:/ /code.launchpad .net/~ballogy/ indicator- session/ better- fallback- icon/+merge/ 141608 (which however doesn't take care of retaining the fix for bug 1048348).
I'm sure there's a way to simplify this to not require a list of icons hard-coded in indicator-session -- perhaps by using the g_themed_ icon_with_ default_ fallbacks mechanisms, and checking if it results in a valid icon, and dealing with when it doesn't?