aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-05 09:13:41 -0600
committerTed Gould <ted@canonical.com>2009-11-05 09:13:41 -0600
commitdb9e8f49d8136dfbec1539812d7cf76d90b9bc69 (patch)
treed0abd50fd186a0652b3b319e0c51f073b00e4dd7 /libindicator/indicator.h
parentc547687a407d935654aa71f7afa1e4392e50d5c5 (diff)
parent34f914c264d268efff97142ba1ea7f2c3eab0493 (diff)
downloadlibayatana-indicator-db9e8f49d8136dfbec1539812d7cf76d90b9bc69.tar.gz
libayatana-indicator-db9e8f49d8136dfbec1539812d7cf76d90b9bc69.tar.bz2
libayatana-indicator-db9e8f49d8136dfbec1539812d7cf76d90b9bc69.zip
Changing the indicator-object API to support indicators that have multiple entries, and are dynamic.
Diffstat (limited to 'libindicator/indicator.h')
-rw-r--r--libindicator/indicator.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/libindicator/indicator.h b/libindicator/indicator.h
index 85fe2e9..8bff270 100644
--- a/libindicator/indicator.h
+++ b/libindicator/indicator.h
@@ -25,31 +25,17 @@ License along with this library. If not, see
#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_VERSION "0.3.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); }
-
+#define INDICATOR_GET_TYPE_S "get_type"
+typedef GType (*get_type_t) (void);
+#define INDICATOR_SET_TYPE(x) GType get_type (void) { return x; }
#endif /* __LIBINDICATOR_INDICATOR_H_SEEN__ */