33
31
#include <unity-misc/na-tray-child.h>
34
32
#include <unity-misc/na-tray-manager.h>
38
37
// NOTE: Why does this inherit from PanelIndicatorObjectView?
39
38
// It doesn't ever get any indicator object.
40
39
class PanelTray : public PanelIndicatorObjectView
46
void Draw (nux::GraphicsEngine& gfx_content, bool force_draw);
45
void Draw(nux::GraphicsEngine& gfx_content, bool force_draw);
50
49
virtual void OnEntryAdded(unity::indicator::Entry::Ptr const& proxy);
53
52
guint8 _n_children;
56
const gchar * GetName ();
57
const gchar * GetChildsName ();
58
void AddProperties (GVariantBuilder *builder);
61
static gboolean FilterTrayCallback (NaTray *tray, NaTrayChild *child, PanelTray *self);
62
static void OnTrayIconRemoved (NaTrayManager *manager, NaTrayChild *child, PanelTray *self);
63
static gboolean IdleSync (PanelTray *tray);
64
static gboolean OnTrayDraw (GtkWidget *widget, cairo_t *cr, PanelTray *tray);
55
const gchar* GetName();
56
const gchar* GetChildsName();
57
void AddProperties(GVariantBuilder* builder);
60
static gboolean FilterTrayCallback(NaTray* tray, NaTrayChild* child, PanelTray* self);
61
static void OnTrayIconRemoved(NaTrayManager* manager, NaTrayChild* child, PanelTray* self);
62
static gboolean IdleSync(PanelTray* tray);
63
static gboolean OnTrayDraw(GtkWidget* widget, cairo_t* cr, PanelTray* tray);
73
72
gulong _tray_expose_id;
74
73
gulong _tray_icon_added_id;