~marcobiscaro2112/unity/fixes-724739

« back to all changes in this revision

Viewing changes to src/PanelTray.h

  • Committer: Neil Jagdish Patel
  • Date: 2011-02-14 19:56:50 UTC
  • mto: This revision was merged to the branch mainline in revision 867.
  • Revision ID: neil.patel@canonical.com-20110214195650-xq5qd4287c6qk176
Size and position systray window

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  PanelTray ();
40
40
  ~PanelTray ();
41
41
 
 
42
  void Draw (nux::GraphicsEngine& gfx_content, bool force_draw);
 
43
  
42
44
  Window GetTrayWindow ();
43
45
 
 
46
  void Sync ();
 
47
 
44
48
  void OnEntryAdded (IndicatorObjectEntryProxy *proxy);
45
49
  void OnEntryMoved (IndicatorObjectEntryProxy *proxy);
46
50
  void OnEntryRemoved (IndicatorObjectEntryProxy *proxy);
47
 
 
 
51
  int        _n_children;
48
52
protected:
49
53
  const gchar * GetName ();
50
54
  const gchar * GetChildsName ();
52
56
 
53
57
private:
54
58
  static gboolean FilterTrayCallback (NaTray *tray, NaTrayChild *child, PanelTray *self);
 
59
  static void     OnTrayIconRemoved  (NaTrayManager *manager, NaTrayChild *child, PanelTray *self);
 
60
  static gboolean IdleSync (PanelTray *tray);
 
61
  static gboolean OnTrayExpose (GtkWidget *widget, GdkEventExpose *ev, PanelTray *tray);
55
62
 
56
63
private:
57
64
  GtkWidget *_window;
58
65
  NaTray    *_tray;
 
66
  int        _last_x;
 
67
  int        _last_y;
59
68
};
60
69
#endif