2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef __CD_INDICATOR_APPLET3__
21
#define __CD_INDICATOR_APPLET3__
25
#include <libindicator/indicator-object.h>
27
#define INDICATOR_SERVICE_DIR "/usr/share/unity/indicators"
29
typedef void (* CairoDockIndicator3Func ) (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, GldiModuleInstance *myApplet);
30
typedef void (* CairoDockIndicator3FuncMenu ) (IndicatorObject *pIndicator, IndicatorObjectEntry *pEntry, guint32 timestamp, GldiModuleInstance *myApplet);
32
IndicatorObject * cd_indicator3_load (const gchar *cName,
33
CairoDockIndicator3Func entry_added,
34
CairoDockIndicator3Func entry_removed,
35
CairoDockIndicator3Func accessible_desc_update,
36
CairoDockIndicator3FuncMenu menu_show,
37
GldiModuleInstance *myApplet);
39
void cd_indicator3_unload (IndicatorObject *pIndicator,
40
CairoDockIndicator3Func entry_added,
41
CairoDockIndicator3Func entry_removed,
42
CairoDockIndicator3Func accessible_desc_update,
43
CairoDockIndicator3FuncMenu menu_show,
44
GldiModuleInstance *myApplet);
46
const gchar * cd_indicator3_get_label (IndicatorObjectEntry *pEntry);
48
GtkImage * cd_indicator3_get_image (IndicatorObjectEntry *pEntry);
50
GtkMenu * cd_indicator3_get_menu (IndicatorObjectEntry *pEntry);
52
const gchar * cd_indicator3_get_accessible_desc (IndicatorObjectEntry *pEntry);
54
const gchar * cd_indicator3_get_name_hint (IndicatorObjectEntry *pEntry);
56
const gchar * cd_indicator3_get_directory_path (void);
58
#endif /* __CD_INDICATOR_APPLET3__ */