~3v1n0/unity/gnome-keys-timestamp-api

« back to all changes in this revision

Viewing changes to UnityCore/Indicator.h

  • Committer: CI Train Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2015-02-19 19:33:36 UTC
  • mfrom: (3899.2.85 lim-everywhere)
  • Revision ID: ci-train-bot@canonical.com-20150219193336-1ax9aswzdijrfq0f
Decorations, Panel: add menus for unfocused windows as well

Now the indicator-appmenu exports the menus for all the windows,
then it's up to us to filter them based on their parent window and
show on relevant place.
Also, set LIM as default now. Fixes: #1309778
Approved by: Andrea Azzarone, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
public:
40
40
  typedef std::shared_ptr<Indicator> Ptr;
41
 
  typedef std::list<Entry::Ptr> Entries;
 
41
  typedef std::vector<Entry::Ptr> Entries;
42
42
 
43
43
  Indicator(std::string const& name);
44
44
  virtual ~Indicator();
47
47
 
48
48
  virtual bool IsAppmenu() const { return false; }
49
49
 
50
 
  void Sync(Entries const& new_entries);
 
50
  virtual void Sync(Entries const&);
51
51
  Entry::Ptr GetEntry(std::string const& entry_id) const;
52
 
  int EntryIndex(std::string const& entry_id) const;
53
52
  Entries const& GetEntries() const;
54
53
 
55
54
  // Signals
56
55
  sigc::signal<void> updated;
57
56
  sigc::signal<void, Entry::Ptr const&> on_entry_added;
58
 
  sigc::signal<void, std::string const&> on_entry_removed;
 
57
  sigc::signal<void, Entry::Ptr const&> on_entry_removed;
59
58
  sigc::signal<void, std::string const&, unsigned, int, int, unsigned> on_show_menu;
60
59
  sigc::signal<void, std::string const&> on_secondary_activate;
61
60
  sigc::signal<void, std::string const&, int> on_scroll;