2
* Copyright (C) 2010 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
27
#include "IndicatorObjectProxy.h"
28
#include "Introspectable.h"
29
#include "PanelIndicatorObjectView.h"
31
#include <unity-misc/na-tray.h>
32
#include <unity-misc/na-tray-child.h>
33
#include <unity-misc/na-tray-manager.h>
35
class PanelTray : public PanelIndicatorObjectView
42
void Draw (nux::GraphicsEngine& gfx_content, bool force_draw);
44
Window GetTrayWindow ();
48
void OnEntryAdded (IndicatorObjectEntryProxy *proxy);
49
void OnEntryMoved (IndicatorObjectEntryProxy *proxy);
50
void OnEntryRemoved (IndicatorObjectEntryProxy *proxy);
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 OnTrayExpose (GtkWidget *widget, GdkEventExpose *ev, PanelTray *tray);