Merge lp://staging/~a-j-buxton/indicator-applet/fix-loaded-count into lp://staging/indicator-applet/13.10
Status: | Merged |
---|---|
Approved by: | Ted Gould |
Approved revision: | 419 |
Merged at revision: | 419 |
Proposed branch: | lp://staging/~a-j-buxton/indicator-applet/fix-loaded-count |
Merge into: | lp://staging/indicator-applet/13.10 |
Diff against target: |
21 lines (+2/-2) 1 file modified
src/applet-main.c (+2/-2) |
To merge this branch: | bzr merge lp://staging/~a-j-buxton/indicator-applet/fix-loaded-count |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Iain Lane (community) | Approve | ||
Indicator Applet Developers | Pending | ||
Review via email: mp+183349@code.staging.launchpad.net |
Commit message
Fix the loaded indicators count.
The addition of support for indicator-ng means that there are now two
ways to load indicators, but only those loaded by the second function
are counted. Fix this by making the worker functions add to the counter
variable instead of assigning to it.
Description of the change
This fixes a bug introduced with the new indicator-ng support. There are now two ways to load plugins, and when the second way is done, it overwrites the count of plugins loaded by the first way, as the worker functions use call-by-reference. This change fixes the bug by adding to the variable rather than assigning to it.
I can't test this patch at the moment as I'm not using gnome-panel. I found the bug while porting the indicator-ng support to xfce4-indicator
Cheers. How can I see this bug and verify your fix?