lp:~charlesk/libindicator/fix-939061
- Get this branch:
- bzr branch lp:~charlesk/libindicator/fix-939061
Branch merges
- Conor Curran (community): Approve
-
Diff: 28 lines (+3/-8)1 file modifiedlibindicator/indicator-object.c (+3/-8)
Related bugs
Bug #939061: Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10615 | Medium | Fix Released |
Related blueprints
Branch information
Recent revisions
- 454. By Charles Kerr
-
silence Coverity warning "PW.BRANCH_
PAST_INITIALIZA TION - CID 10615" reported in Bug #939061 Coverity is unhappy that the local variable "priv" is uninitialized if one of the goto branches is followed in this function. Since we only use priv once, a fairly clean way of sidestepping this warning is removing the local variable "priv" and instead using INDICATOR_
OBJECT_ GET_PRIVATE( )'s return pointer directly. - 447. By Lars Karlitski
-
indicator_
object_ set_visible: only emit entry-{ added,removed} when visibility actually changed Emitting those signals is semantically incorrect. It also confused
indicator-loader and the panel, because they are not checking whether an entry
is already present in their entry-added handlers. This led to gtk warnings
("widget already has a parent") and strange effects, such as the same menu
being added multiple times into the panel.This patch also makes indicator_
object_ dispose use indicator_ object_ set_visible
(it was already doing something similar).
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:libindicator/0.5