aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-22 17:09:03 -0500
committerTed Gould <ted@canonical.com>2009-04-22 17:09:03 -0500
commit836e265935805953cd21748c4ba78fa98978e853 (patch)
tree0febdc5f2614a760d4acb9f91e587745dca92863 /libindicator/indicator.h
parentf5044ea680421a572394ea8286b538857d491973 (diff)
parent18397c82725b7cee22bf82b0539a4fb36dd49fe9 (diff)
downloadlibayatana-indicator-836e265935805953cd21748c4ba78fa98978e853.tar.gz
libayatana-indicator-836e265935805953cd21748c4ba78fa98978e853.tar.bz2
libayatana-indicator-836e265935805953cd21748c4ba78fa98978e853.zip
Upstream snapshot, turning version getting feature into a
function and adding a name symbol outline.
Diffstat (limited to 'libindicator/indicator.h')
-rw-r--r--libindicator/indicator.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libindicator/indicator.h b/libindicator/indicator.h
index f2bd51d..8947f5b 100644
--- a/libindicator/indicator.h
+++ b/libindicator/indicator.h
@@ -16,10 +16,19 @@ GtkImage * get_icon (void);
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 * indicator_version_symbol = INDICATOR_VERSION;
-#define INDICATOR_VERSION_S "indicator_version_symbol"
+#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__ */