diff options
author | Ted Gould <ted@canonical.com> | 2009-02-05 14:42:38 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-05 14:42:38 +0100 |
commit | 5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad (patch) | |
tree | d33c0d89b423aa5cbec5e27a1345db4ce1a409c4 | |
parent | 7ef6658a210f363bfe20563aad59b145d77ef43a (diff) | |
download | libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.tar.gz libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.tar.bz2 libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.zip |
Adding in the API function to take and icon and display it. Just the prototype.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | docs/reference/libindicate-decl.txt | 5 | ||||
-rw-r--r-- | libindicate/Makefile.am | 1 | ||||
-rw-r--r-- | libindicate/indicator.c | 7 | ||||
-rw-r--r-- | libindicate/indicator.h | 3 |
5 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6668ff3..82cc4c4 100644 --- a/configure.ac +++ b/configure.ac @@ -47,8 +47,10 @@ AC_PATH_PROG(GCONFTOOL, gconftool-2) AM_GCONF_SOURCE_2 GLIB_REQUIRED_VERSION=2.18 +GDK_PIXBUF_REQUIRED_VERSION=2.12 PKG_CHECK_MODULES(LIBINDICATE, glib-2.0 >= $GLIB_REQUIRED_VERSION + gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED_VERSION dbus-glib-1 >= $DBUS_REQUIRED_VERSION) AC_SUBST(LIBINDICATE_CFLAGS) AC_SUBST(LIBINDICATE_LIBS) diff --git a/docs/reference/libindicate-decl.txt b/docs/reference/libindicate-decl.txt index b2caecb..6e0c490 100644 --- a/docs/reference/libindicate-decl.txt +++ b/docs/reference/libindicate-decl.txt @@ -119,6 +119,11 @@ IndicateIndicator * indicator IndicateIndicator * indicator, const gchar * key, const gchar * data </FUNCTION> <FUNCTION> +<NAME>indicate_indicator_set_property_icon</NAME> +<RETURNS>void </RETURNS> +IndicateIndicator * indicator, const gchar * key, const GdkPixbuf * data +</FUNCTION> +<FUNCTION> <NAME>indicate_indicator_get_property</NAME> <RETURNS>const gchar *</RETURNS> IndicateIndicator * indicator, const gchar * key diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am index 9fe05dc..3ceba08 100644 --- a/libindicate/Makefile.am +++ b/libindicate/Makefile.am @@ -90,6 +90,7 @@ Indicate-0.1.gir: $(irscanner_headers) --add-include-path=$(srcdir) \ --include=GObject-2.0 \ --include=GLib-2.0 \ + --include=GdkPixbuf-2.0 \ --library=indicate --pkg indicate \ --output Indicate-0.1.gir $(irscanner_headers) diff --git a/libindicate/indicator.c b/libindicate/indicator.c index 94af726..b77d7d7 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -209,6 +209,13 @@ indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * ke return class->set_property(indicator, key, data); } +void +indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar * key, const GdkPixbuf * data) +{ + + +} + const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key) { diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 8823757..0de5cfc 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -5,6 +5,8 @@ #include <glib.h> #include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + G_BEGIN_DECLS /* Boilerplate */ @@ -68,6 +70,7 @@ void indicate_indicator_user_display (IndicateIndicator * indicator); /* Properties handling */ void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * key, const gchar * data); +void indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar * key, const GdkPixbuf * data); const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key); GPtrArray * indicate_indicator_list_properties (IndicateIndicator * indicator); |