diff options
author | Ted Gould <ted@canonical.com> | 2009-04-21 17:07:21 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-21 17:07:21 -0500 |
commit | b630f123dd05ba928f13e03969cfac75e8b9189a (patch) | |
tree | cd1ffeeacd4645a5125e4b763a7ca9f050967b66 /libindicator | |
parent | 65381a4953acc7bbe1bfedf1f6155257ae60f8d3 (diff) | |
parent | 8c6656e5d6a05ad14fe41c12bc2d159c5b3e22ca (diff) | |
download | libayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.tar.gz libayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.tar.bz2 libayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.zip |
Upstream snapshot
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/Makefile.am | 14 | ||||
-rw-r--r-- | libindicator/indicator.h | 25 | ||||
-rw-r--r-- | libindicator/indicator.pc.in | 16 |
3 files changed, 55 insertions, 0 deletions
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am new file mode 100644 index 0000000..be68721 --- /dev/null +++ b/libindicator/Makefile.am @@ -0,0 +1,14 @@ +EXTRA_DIST = \ + indicator.pc.in + +libindicatorincludedir=$(includedir)/libindicator-0.1/libindicator + +indicator_headers = \ + indicator.h + +libindicatorinclude_HEADERS = \ + $(indicator_headers) + +pkgconfig_DATA = indicator.pc +pkgconfigdir = $(libdir)/pkgconfig + diff --git a/libindicator/indicator.h b/libindicator/indicator.h new file mode 100644 index 0000000..6940dfb --- /dev/null +++ b/libindicator/indicator.h @@ -0,0 +1,25 @@ + +#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); +get_label_t get_label; + +#define INDICATOR_GET_ICON_S "get_icon" +typedef GtkImage * (*get_icon_t) (void); +get_icon_t get_icon; + +#define INDICATOR_GET_MENU_S "get_menu" +typedef GtkMenu * (*get_menu_t) (void); +get_menu_t get_menu; + +#define INDICATOR_VERSION "0.2.0" +#define INDICATOR_SET_VERSION static gchar * indicator_version_symbol = INDICATOR_VERSION; +#define INDICATOR_VERSION_S "indicator_version_symbol" +#define INDICATOR_VERSION_CHECK(x) (!g_strcmp0(x, INDICATOR_VERSION)) + +#endif /* __LIBINDICATOR_INDICATOR_H_SEEN__ */ + diff --git a/libindicator/indicator.pc.in b/libindicator/indicator.pc.in new file mode 100644 index 0000000..fa1c697 --- /dev/null +++ b/libindicator/indicator.pc.in @@ -0,0 +1,16 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=${libdir}/indicators/2/ + +Cflags: -I${includedir}/libindicator-0.1 +Requires: gtk-2.0 +Libs: + +Name: libindicator +Description: libindicator. +Version: @VERSION@ + |