blob: 85fe2e93277a06919dc480451800f278cbb64083 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
An interface for indicators to link to for creation.
Copyright 2009 Canonical Ltd.
Authors:
Ted Gould <ted@canonical.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License version 3.0 for more details.
You should have received a copy of the GNU General Public
License along with this library. If not, see
<http://www.gnu.org/licenses/>.
*/
#ifndef __LIBINDICATOR_INDICATOR_H_SEEN__
#define __LIBINDICATOR_INDICATOR_H_SEEN__ 1
#include <gtk/gtk.h>
#define INDICATOR_GET_LABEL_S "get_label"
typedef GtkLabel * (*get_label_t)(void);
GtkLabel * get_label (void);
#define INDICATOR_GET_ICON_S "get_icon"
typedef GtkImage * (*get_icon_t) (void);
GtkImage * get_icon (void);
#define INDICATOR_GET_MENU_S "get_menu"
typedef GtkMenu * (*get_menu_t) (void);
GtkMenu * get_menu (void);
#define INDICATOR_GET_VERSION_S "get_version"
typedef gchar * (*get_version_t) (void);
gchar * get_version (void);
#define INDICATOR_VERSION "0.2.0"
#define INDICATOR_SET_VERSION gchar * get_version(void) { return INDICATOR_VERSION; }
#define INDICATOR_VERSION_CHECK(x) (!g_strcmp0(x, INDICATOR_VERSION))
#define INDICATOR_GET_NAME_S "get_name"
typedef gchar * (*get_name_t) (void);
gchar * get_name (void);
#define INDICATOR_SET_NAME(x) gchar * get_name(void) {return (x); }
#endif /* __LIBINDICATOR_INDICATOR_H_SEEN__ */
|