~nick-dedekind/unity/multi-instance-icon-loader

« back to all changes in this revision

Viewing changes to UnityCore/DBusIndicators.h

  • Committer: Tarmac
  • Author(s): Albert Astals
  • Date: 2012-10-09 09:48:07 UTC
  • mfrom: (2807.2.30 unity)
  • Revision ID: tarmac-20121009094807-r47h33bftvl90pnw
Do not reuse the menu entries if their order changes

Since the indicators api only have "add" and "remove" signals, if we reuse an entry that is not in the correct order it will case the menus or whatever this indicator represents to be in the wrong order. Fixes: https://bugs.launchpad.net/bugs/1062283. Approved by Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  virtual void OnShowAppMenu(unsigned int xid, int x, int y,
51
51
                             unsigned int timestamp);
52
52
 
 
53
protected:
 
54
  DBusIndicators(std::string const& dbus_name);
 
55
  bool IsConnected() const;
 
56
 
53
57
private:
54
58
  class Impl;
55
59
  std::unique_ptr<Impl> pimpl;