aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator.h
diff options
context:
space:
mode:
authorJonathan Riddell <jriddell@canonical.com>2009-08-05 00:19:38 +0100
committerJonathan Riddell <jriddell@canonical.com>2009-08-05 00:19:38 +0100
commitcb9d427cb789f34348e9697459c3c41b0e7046f3 (patch)
tree2d5388d2653052bbf9aef4e41e82711eb39cdcd4 /libindicator/indicator.h
parentd10264bc6f04f75ec0c48643c68d0179cd3ffc70 (diff)
parent42ba02f7916c1f77f7fb33c4c8cd7c64729312e5 (diff)
downloadlibayatana-indicator-cb9d427cb789f34348e9697459c3c41b0e7046f3.tar.gz
libayatana-indicator-cb9d427cb789f34348e9697459c3c41b0e7046f3.tar.bz2
libayatana-indicator-cb9d427cb789f34348e9697459c3c41b0e7046f3.zip
merge current package for upload, https://code.edge.launchpad.net/~indicator-applet-developers/indicator-applet/applet-packaging/+merge/9671
Diffstat (limited to 'libindicator/indicator.h')
-rw-r--r--libindicator/indicator.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libindicator/indicator.h b/libindicator/indicator.h
new file mode 100644
index 0000000..8947f5b
--- /dev/null
+++ b/libindicator/indicator.h
@@ -0,0 +1,34 @@
+
+#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__ */
+